From a8389e006ac06c6dd245327f2c5be8c5c098ae7e Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Fri, 23 Mar 2018 19:46:56 +0100 Subject: [PATCH] Fix typo in /vote (grazie @ObsidianSin) --- db.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/db.py b/db.py index 24d4bc0e..e28bb91c 100644 --- a/db.py +++ b/db.py @@ -719,7 +719,7 @@ class VoteQuestion(Base): f"⚪ {none}\n" \ f"🔵 {yes}\n" \ f"🔴 {no}\n" \ - f"⚫@roy️ {abstain}" + f"⚫️ {abstain}" return text @@ -746,8 +746,6 @@ class VoteAnswer(Base): # If run as script, create all the tables in the db if __name__ == "__main__": - session = Session() - session.query(VoteQuestion).first().generate_text(session) - #print("Creating new tables...") - #Base.metadata.create_all(bind=engine) - #print("Done!") \ No newline at end of file + print("Creating new tables...") + Base.metadata.create_all(bind=engine) + print("Done!") \ No newline at end of file