def make_logs_query(log):
    log_id = log['code']
    query = ('\n    {\n    reportData{\n        report(code: "%s"){\n        fights(difficulty: 5){\n            name\n            id\n            averageItemLevel\n            bossPercentage\n            kill\n            startTime\n            endTime\n        }\n        }\n    }\n    }\n    ' % log_id)
    return query
def make_logs_query(log):
    log_id = log['code']
    query = ('\n    {\n    reportData{\n        report(code: "%s"){\n        fights(difficulty: 5){\n            name\n            id\n            averageItemLevel\n            bossPercentage\n            kill\n            startTime\n            endTime\n        }\n        }\n    }\n    }\n    ' % log_id)
    return query