diff --git a/plugins/callbacks/submission.py b/plugins/callbacks/submission.py index 797d403..330693c 100644 --- a/plugins/callbacks/submission.py +++ b/plugins/callbacks/submission.py @@ -138,7 +138,7 @@ async def callback_query_no(app: PyroClient, callback: CallbackQuery): db_entry = await col_submitted.delete_one({"_id": ObjectId(fullcallback[2])}) if ( - db_entry["temp"]["uuid"] is not None + db_entry.raw_result["temp"]["uuid"] is not None and Path( f"{app.config['locations']['data']}/submissions/{db_entry['temp']['uuid']}" ).exists()