randydev commited on
Commit
f11339f
·
verified ·
1 Parent(s): 81fbcce

Update Akeno/utils/base_sqlite.py

Browse files
Files changed (1) hide show
  1. Akeno/utils/base_sqlite.py +2 -2
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 prefixes WHERE user_id=?', (user_id,))
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()