retest
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2026-05-03 13:56:13 +10:00
parent 0577f4d65c
commit d55e96978e

View File

@@ -353,7 +353,7 @@ def get_all_sources(category: str):
if category == "all":
cur.execute("SELECT * FROM sourse")
else:
cur.execute("SELECT * FROM sourse WHERE category = %s", (category,))
cur.execute("SELECT * FROM sourse WHERE promt = %s", (category,))
rows = cur.fetchall()
sources = [{"url": row["url"], "promt": row["promt"]} for row in rows]
return {"sources": sources}