Skip to content

Instantly share code, notes, and snippets.

@minorsecond
Last active August 29, 2015 14:19
Show Gist options
  • Save minorsecond/63682d4e8328951588ee to your computer and use it in GitHub Desktop.
Save minorsecond/63682d4e8328951588ee to your computer and use it in GitHub Desktop.
Broken Sqlalchemy Code
now = datetime.datetime.now()
out = session.query(Clocktime). \
filter(Clocktime.p_uuid == p_uuid). \
update({"time_out": now}, synchronize_session='fetch')
session.commit()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment