We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e85dba commit 5c74ad7Copy full SHA for 5c74ad7
unzipper/helpers/database.py
@@ -240,3 +240,11 @@ async def get_thumb_users():
240
async def count_thumb_users():
241
users = await thumb_db.count_documents({})
242
return users
243
+
244
+async def del_thumb_db(user_id):
245
+ del_thumb_id = int(user_id)
246
+ is_exist = await thumb_db.find_one({"_id": del_thumb_id})
247
+ if is_exist:
248
+ await user_db.delete_one({"_id": del_thumb_id})
249
+ else:
250
+ return
0 commit comments