mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-30 15:04:18 +00:00
Fix typo in /vote (grazie @ObsidianSin)
This commit is contained in:
parent
fbe1c78399
commit
a8389e006a
1 changed files with 4 additions and 6 deletions
10
db.py
10
db.py
|
@ -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!")
|
|
Loading…
Reference in a new issue