1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 13:34:28 +00:00

Fix typo in /vote (grazie @ObsidianSin)

This commit is contained in:
Steffo 2018-03-23 19:46:56 +01:00
parent fbe1c78399
commit a8389e006a
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: C27544372FBB445D

10
db.py
View file

@ -719,7 +719,7 @@ class VoteQuestion(Base):
f"{none}\n" \ f"{none}\n" \
f"🔵 {yes}\n" \ f"🔵 {yes}\n" \
f"🔴 {no}\n" \ f"🔴 {no}\n" \
f"@roy {abstain}" f" {abstain}"
return text return text
@ -746,8 +746,6 @@ class VoteAnswer(Base):
# If run as script, create all the tables in the db # If run as script, create all the tables in the db
if __name__ == "__main__": if __name__ == "__main__":
session = Session() print("Creating new tables...")
session.query(VoteQuestion).first().generate_text(session) Base.metadata.create_all(bind=engine)
#print("Creating new tables...") print("Done!")
#Base.metadata.create_all(bind=engine)
#print("Done!")