Update Akeno/utils/base_sqlite.py
Browse files
Akeno/utils/base_sqlite.py
CHANGED
@@ -22,7 +22,7 @@ async def set_prefix_in_db(user_id: int, prefix: str):
|
|
22 |
conn.commit()
|
23 |
|
24 |
async def get_prefix(user_id: int):
|
25 |
-
cursor.execute('SELECT prefix FROM
|
26 |
result = cursor.fetchone()
|
27 |
|
28 |
if result:
|
@@ -30,4 +30,4 @@ async def get_prefix(user_id: int):
|
|
30 |
else:
|
31 |
return None
|
32 |
|
33 |
-
conn.close()
|
|
|
22 |
conn.commit()
|
23 |
|
24 |
async def get_prefix(user_id: int):
|
25 |
+
cursor.execute('SELECT prefix FROM prefixes_dev WHERE user_id=?', (user_id,))
|
26 |
result = cursor.fetchone()
|
27 |
|
28 |
if result:
|
|
|
30 |
else:
|
31 |
return None
|
32 |
|
33 |
+
conn.close()
|