From 09a94af61299863eb6ac6040c0c6594504b7d2de Mon Sep 17 00:00:00 2001 From: Matthias Bilger Date: Sun, 2 Sep 2018 10:15:17 +0200 Subject: [PATCH] update news notification: --- login.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/login.py b/login.py index c79b1cf..a4372b4 100644 --- a/login.py +++ b/login.py @@ -16,8 +16,6 @@ pushover.init('***REMOVED***') logging.basicConfig( level=logging.INFO, format='%(asctime)s - %(name)s - %(levelname)8s - %(message)s', - filename='log.txt', - filemode='a+' ) logger = logging.getLogger('Infomentor Notifier') @@ -40,8 +38,7 @@ class NewsInformer(object): ) self.db_notification = db.create_table( 'news_notification', - primary_id='theid', - primary_type=db.types.integer + primary_id=False, ) def send_notification(self, news_id, text, title, attachment=None, timestamp=True):