From 22de5e7e4e6ce50170a9ac27aea6d257bdbe211a Mon Sep 17 00:00:00 2001 From: Thomas L Date: Sat, 14 Apr 2018 17:31:53 +0200 Subject: [PATCH] add default triggerpattern --- db.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/db.py b/db.py index d6c52bc..9067d0c 100644 --- a/db.py +++ b/db.py @@ -126,6 +126,10 @@ class DB(object): self.execute("INSERT INTO user (passhash) VALUES(?);", (json['passhash'], )) uid = self.cur.lastrowid + self.execute(""" + INSERT INTO triggerpatterns (user_id, pattern) + VALUES(?, ?); + """, (uid, '.*')) else: uid = json['uid'] self.execute("INSERT INTO email (user_id, email) VALUES(?, ?);",