fix missing
Browse files- akn/utils/database.py +5 -2
akn/utils/database.py
CHANGED
@@ -289,8 +289,11 @@ class Database:
|
|
289 |
async def get_all_alldl_bot(self) -> list:
|
290 |
return [i async for i in self.alldl_bot.find({})]
|
291 |
|
292 |
-
async def get_alldlbot_by_user_id(self, user_id):
|
293 |
-
user_data = await self.alldl_bot.find_one({
|
|
|
|
|
|
|
294 |
return True if user_data else False
|
295 |
|
296 |
async def get_alldlbot_by_no_button(self, id):
|
|
|
289 |
async def get_all_alldl_bot(self) -> list:
|
290 |
return [i async for i in self.alldl_bot.find({})]
|
291 |
|
292 |
+
async def get_alldlbot_by_user_id(self, user_id, id):
|
293 |
+
user_data = await self.alldl_bot.find_one({
|
294 |
+
"user_id": user_id,
|
295 |
+
"bot_id": id
|
296 |
+
})
|
297 |
return True if user_data else False
|
298 |
|
299 |
async def get_alldlbot_by_no_button(self, id):
|