From 0cf1d8b603cea118b45d2e68525d38cb68baa668 Mon Sep 17 00:00:00 2001 From: b3yond Date: Mon, 24 Sep 2018 17:14:23 +0200 Subject: [PATCH] sqlite3 syntax error because of trailing " --- README.md | 4 ++++ user.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 97f0496..4e45a6b 100644 --- a/README.md +++ b/README.md @@ -138,6 +138,10 @@ sudo sed -r "s/example.org/$DOMAIN/g" deployment/example.org.conf > /etc/nginx/s sudo mkdir /var/ticketfrei sudo chown www-data:www-data -R /var/ticketfrei +# change /etc/aliases permissions to be able to receive reports per mail +sudo chown root:www-data /etc/aliases +sudo chmod 664 /etc/aliases + # create folder for logs sudo mkdir /var/log/ticketfrei sudo chown www-data:www-data -R /var/log/ticketfrei diff --git a/user.py b/user.py index f27fa54..3c62e22 100644 --- a/user.py +++ b/user.py @@ -286,7 +286,7 @@ schlitz "oauth_token_secret": request_token[1]} def save_twitter_token(self, access_token, access_token_secret): - db.execute(""""INSERT INTO twitter_accounts( + db.execute("""INSERT INTO twitter_accounts( user_id, client_id, client_secret ) VALUES(?, ?, ?);""", (self.uid, access_token, access_token_secret))