Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
338 B
1
Indexable
Never
def get_user_id_from_rating_email_unique_key(unique_key):
    query = '''select * from rate_reservation_queue where unique_key = %s'''
    binds = [unique_key]
    rows = tinyAPI.dsh().query(query, binds)
    return None if len(rows)==0 else rows[0]['user_id']


query_user_info = '''select user_id from user_info where unique_key = %s'''