|
|
@@ -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: |
|
|
|