Skip to content
Advertisement

sqlite database didn’t update table in my flask webhook python code

I try to update my sqlite database using flask webhook.

It seems commands line work fine if I type manually in the python console but my flask webhook didn’t update my SQLite database. It seems the apps fail at the “cursor.execute()” line.

here is my webhook code:

JavaScript

Can you please tell me what’s wrong with my code ?

if it’s can help, here is my database structure (my db creation):

JavaScript

**I finally found the issue, webhooks need the full path to the SQLite database to work fine. I just start to code in python, it was a noob issue… **

Advertisement

Answer

I finally found the issue, webhooks need the full path to the SQLite database to work fine. I just start to code in python, it was a noob issue…

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement