Leet-Search / backend /app /database /last_fetched_data.py
Patel aryan
refactor: update import paths to include 'backend.app' prefix for consistency
ae9d4c8
raw
history blame contribute delete
376 Bytes
from backend.app.database.supabase_client import supabase
def get_last_fetched_question(type):
result = (
supabase
.from_("problems_bge")
.select("id_num")
.eq("paid_only", type)
.order("id_num", desc=True)
.limit(1)
.execute()
)
if result.data:
return result.data[0]
else:
return None