def get_pulls(log, guild):
    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)
    r = requests.post(graphql_endpoint, json={'query': query}, headers=headers)
    fight_list = r.json()['data']['reportData']['report']['fights']
    for k in range(len(fight_list)):
        fight_list[k].update({'log_code': log_id})
    return fight_list
def get_pulls(log, guild):
    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)
    r = requests.post(graphql_endpoint, json={'query': query}, headers=headers)
    fight_list = r.json()['data']['reportData']['report']['fights']
    for k in range(len(fight_list)):
        fight_list[k].update({'log_code': log_id})
    return fight_list