code cleanup

This commit is contained in:
bacon
2024-03-08 11:50:31 +03:00
parent 3cea8ca2a9
commit 961b260887
6 changed files with 19 additions and 73 deletions

View File

@@ -1,6 +1,5 @@
import sqlite3
from lib import logger
@@ -148,18 +147,3 @@ async def read_db(guild: int, user: int, column: str):
return record[_col_dict[column]]
except sqlite3.Error as _error:
pass
async def check_exist_audio(ctx, guild: int, user: int, column: str, audio: str):
_list_str = await read_db(guild, user, column)
print(type(_list_str))
if _list_str is not None:
_list = _list_str.split(',')
if audio in _list:
await ctx.reply("File in list")
else:
pass
else:
_list = 'None'