Skip to content

Instantly share code, notes, and snippets.

@fcschmidt
Created January 19, 2018 00:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fcschmidt/dad5e0d71de7f23021b5fa47027d553e to your computer and use it in GitHub Desktop.
Save fcschmidt/dad5e0d71de7f23021b5fa47027d553e to your computer and use it in GitHub Desktop.
ValueError: invalid literal for int() with base 10: '5a612b07393e035d5b85cd69ab8618868eb5c129'
for instance in self.session.query(SessionLogModel) \
.filter(or_(SessionLogModel.session_uid.isnot(None) == get_id,
SessionLogModel.id.isnot(None) == int(get_id))):
self.resp = json.dumps(instance.to_json(), default=default)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment