def make_fights_query(fight):
    code = fight['log_code']
    fight_ID = fight['id']
    start_time = fight['start_time']
    end_time = fight['end_time']
    query = ('\n    {\n    reportData{\n        report(code: "%s"){\n        table(fightIDs: %s, startTime: %s, endTime: %s)\n        }\n    }\n    }\n    ' % (code, fight_ID, str(start_time), str(end_time)))
    return query
def make_fights_query(fight):
    code = fight['log_code']
    fight_ID = fight['id']
    start_time = fight['start_time']
    end_time = fight['end_time']
    query = ('\n    {\n    reportData{\n        report(code: "%s"){\n        table(fightIDs: %s, startTime: %s, endTime: %s)\n        }\n    }\n    }\n    ' % (code, fight_ID, str(start_time), str(end_time)))
    return query