Skip to content

Instantly share code, notes, and snippets.

@laike9m
Created Dec 11, 2018
Embed
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"
else:
return sin_id, "calculate"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment