Esempio n. 1
0
def sa_update_is_fish_water_available(available):
    with engine.begin() as conn:
        if available:
            conn.execute(water_source.update().values(
                {water_source.c.fish_available: True}))
        else:
            conn.execute(water_source.update().values(
                {water_source.c.fish_available: False}))
Esempio n. 2
0
def sa_update_job_water_source(job_water_source):
    with engine.begin() as conn:
        conn.execute(water_source.update().values({water_source.c.job_water_source: job_water_source}))
Esempio n. 3
0
def sa_update_water_source(new_water_source):
    with engine.begin() as conn:
        conn.execute(water_source.update().values({water_source.c.selected_source: new_water_source}))