Skip to content

Instantly share code, notes, and snippets.

Created Dec 11, 2018
What would you like to do?
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"
return sin_id, "calculate"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment