def get_definition_random(): result = client.perform_read_query("SELECT * FROM definitions ORDER BY RAND() LIMIT 1") return def_result_to_dict(result)
def get_definition_random(): result = client.perform_read_query( "SELECT * FROM definitions ORDER BY RAND() LIMIT 1") return def_result_to_dict(result)
def get_definition(def_id): result = client.perform_read_query("SELECT * FROM definitions WHERE def_id = " + str(def_id) + " LIMIT 1") return def_result_to_dict(result)
def get_definition(def_id): result = client.perform_read_query( "SELECT * FROM definitions WHERE def_id = " + str(def_id) + " LIMIT 1") return def_result_to_dict(result)