Spaces:
Running
Running
keremberke
commited on
Upload db_utils.py
Browse files- db_utils.py +1 -1
db_utils.py
CHANGED
@@ -43,7 +43,7 @@ def dosyayi_oku(dosya_yolu):
|
|
43 |
|
44 |
def get_next_row_id(user_name: str):
|
45 |
row_range = user_name_to_range[user_name]
|
46 |
-
data, count = supabase.table('eso-tr').select('id').gte('id', row_range[0]).lt('id', row_range[1]).eq('done', False).limit(1).execute()
|
47 |
text_id = data[1][0]['id']
|
48 |
return text_id
|
49 |
|
|
|
43 |
|
44 |
def get_next_row_id(user_name: str):
|
45 |
row_range = user_name_to_range[user_name]
|
46 |
+
data, count = supabase.table('eso-tr').select('id').gte('id', row_range[0]).lt('id', row_range[1]).eq('done', False).order('id', desc=False).limit(1).execute()
|
47 |
text_id = data[1][0]['id']
|
48 |
return text_id
|
49 |
|