Skip to content
Snippets Groups Projects
Commit b059f5b1 authored by osklahti's avatar osklahti
Browse files

k2025r1 hyödyllisiksi koetut muutokset

parent faa255d3
Branches main
No related tags found
No related merge requests found
......@@ -26,6 +26,6 @@ for paiva in data["MenusForDays"]:
con.commit()
# luodaan myös tykkäyksille oma taulu
cur.execute("CREATE TABLE tykkaykset(id integer primary key, ruokaid)")
cur.execute("CREATE TABLE tykkaykset(id integer primary key, ruokaid integer)")
con.commit()
con.close()
......@@ -18,6 +18,8 @@ pvm = '2025-03-24'
#TODO: päivämäärän interpoloiminen lausekkeeseen
paivanruuat = cur.execute("SELECT id, ruoka FROM ateria WHERE paiva LIKE '2025-03-24%'").fetchall()
# [(5, "Pelti Sushi"), (6, "Pinaattiohukaisia"), (7, "Ramenkeitto"), ...]
while True:
valid_ids = []
for ruokatuple in paivanruuat:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment