# creates a newgameplay.json with all the data you need
from Battlerite.championData.dataParser.inireader import read_and_convert
from Battlerite.championData.dataParser.jsonreader import combine_json_data
from flask import jsonify
import json, os

def update_champion_data():
    read_and_convert()
    combine_json_data()

def get_champion_data():
    script_dir = os.path.dirname(__file__)  # <-- absolute dir the script is in
    # combines the layout of gameplay.json with the data from english.ini
    with open(os.path.join(script_dir, "newgameplay.json"), "r") as gameplay:
        return jsonify(json.load(gameplay)), 200

8b106b455175d325fafa6847fabd1212f5ce3dc5
<mask token>

<mask token>


def get_champion_data():
    script_dir = os.path.dirname(__file__)
    with open(os.path.join(script_dir, 'newgameplay.json'), 'r') as gameplay:
        return jsonify(json.load(gameplay)), 200

<mask token>


def update_champion_data():
    read_and_convert()
    combine_json_data()


def get_champion_data():
    script_dir = os.path.dirname(__file__)
    with open(os.path.join(script_dir, 'newgameplay.json'), 'r') as gameplay:
        return jsonify(json.load(gameplay)), 200

from Battlerite.championData.dataParser.inireader import read_and_convert
from Battlerite.championData.dataParser.jsonreader import combine_json_data
from flask import jsonify
import json, os


def update_champion_data():
    read_and_convert()
    combine_json_data()


def get_champion_data():
    script_dir = os.path.dirname(__file__)
    with open(os.path.join(script_dir, 'newgameplay.json'), 'r') as gameplay:
        return jsonify(json.load(gameplay)), 200

# creates a newgameplay.json with all the data you need
from Battlerite.championData.dataParser.inireader import read_and_convert
from Battlerite.championData.dataParser.jsonreader import combine_json_data
from flask import jsonify
import json, os

def update_champion_data():
    read_and_convert()
    combine_json_data()

def get_champion_data():
    script_dir = os.path.dirname(__file__)  # <-- absolute dir the script is in
    # combines the layout of gameplay.json with the data from english.ini
    with open(os.path.join(script_dir, "newgameplay.json"), "r") as gameplay:
        return jsonify(json.load(gameplay)), 200
