Browse Source

#3 修正

main
みてるぞ 1 month ago
parent
commit
dbb6bed647
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      queries_to_answers.py

+ 2
- 0
queries_to_answers.py View File

@@ -16,6 +16,8 @@ def main (
db = DatabaseManager (CONFIG)
Model.set_connection_resolver (db)
queries: list[Query] = Query.where ('answered', False).get ()
if not queries:
return
query: Query = random.choice (queries)
message: str | list[dict[str, str | dict[str, str]]]
if query.image_url is None:


Loading…
Cancel
Save