Skip to content

Commit

Permalink
πŸ› (db.py): fix empty query execution
Browse files Browse the repository at this point in the history
Fixed a 'c.execute()' invoked with no query.
  • Loading branch information
ncvescera committed Aug 28, 2024
1 parent bcf078b commit cdc34c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def __check_db(self):
q = f"CREATE TABLE {DBManager.__tab_richieste}(user, start_date, state, end_date)"

self.logger.debug("CREATING TABLE %s", DBManager.__tab_richieste)
c.execute()
c.execute(q)

self.logger.debug("COMMITTING")
conn.commit()
Expand Down

0 comments on commit cdc34c2

Please sign in to comment.