Eine voting seite für falsch zugeordnete Zitate https://zitate.prapsschnalinen.de
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
zitate/check.py

23 lines
746 B

from db import WrongQuote
for quote in WrongQuote.select().where(WrongQuote.checked == False):
if quote.contributed_by != "asozialesnetzwerk.github.io/discord":
print(f'"{quote.quote.quote}"')
print(
f" --{quote.author.author} (eigentlich {quote.quote.author.author})"
)
print(f"Eingereicht von {quote.contributed_by}")
choice = input("Akzeptieren? (y/n) ")
else:
choice="n"
if choice == "y":
quote.checked = True
quote.author.checked = True
quote.quote.author.checked = True
quote.save()
quote.author.save()
quote.quote.author.save()
elif choice == "n":
quote.delete_instance()
print()
print()