sqlite3 syntax error because of trailing "

This commit is contained in:
b3yond 2018-09-24 17:14:23 +02:00
parent 244bde51b6
commit 0cf1d8b603
2 changed files with 5 additions and 1 deletions

View file

@ -138,6 +138,10 @@ sudo sed -r "s/example.org/$DOMAIN/g" deployment/example.org.conf > /etc/nginx/s
sudo mkdir /var/ticketfrei sudo mkdir /var/ticketfrei
sudo chown www-data:www-data -R /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 # create folder for logs
sudo mkdir /var/log/ticketfrei sudo mkdir /var/log/ticketfrei
sudo chown www-data:www-data -R /var/log/ticketfrei sudo chown www-data:www-data -R /var/log/ticketfrei

View file

@ -286,7 +286,7 @@ schlitz
"oauth_token_secret": request_token[1]} "oauth_token_secret": request_token[1]}
def save_twitter_token(self, access_token, access_token_secret): 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 user_id, client_id, client_secret
) VALUES(?, ?, ?);""", ) VALUES(?, ?, ?);""",
(self.uid, access_token, access_token_secret)) (self.uid, access_token, access_token_secret))