Skip to content

Instantly share code, notes, and snippets.

@laike9m
Created December 11, 2018 04:37
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 laike9m/c3668844536477c51e6874e98731ea75 to your computer and use it in GitHub Desktop.
Save laike9m/c3668844536477c51e6874e98731ea75 to your computer and use it in GitHub Desktop.
def xxxx(ph, sin_id):
with OracleConnect(xxxx) as db_oracle:
sql = u"xxxxx"
has_data, sql_data = db_oracle.get_one(sql)
if has_data:
return sql_data.get("task_id", ""), "rollback"
else:
return sin_id, "calculate"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment