def tanks_by_nation():
    # tanks_raw = wg_api.get_raw_vehicle()
    api_version = wg_api.get_api_version()
    t = sql_api.TanksDB(api_version)
    return render_template("tanks_by_nation.html", wg_api_version=api_version, ussr_tanks_data=t.ussr(), usa_tanks_data=t.usa(),
                           uk_tanks_data=t.uk(), germany_tanks_data=t.germany(), china_tanks_data=t.china(),
                           japan_tanks_data=t.japan())
 def __init__(self, api_version=False, db_name="tank_db"):
     assert len(db_name.split(".")) < 2
     if not api_version:
         api_version = wg_api.get_api_version()
     self.api_version = str(api_version).replace(".","")
     self.db_name = db_name.split(".")[0] + "_" + str(self.api_version)
def tanks_and_ids():
    tanks = wg_api.get_tanks_and_ids()
    api_version = wg_api.get_api_version()
    return render_template("tanks_and_ids.html", wg_api_version=api_version, tanks_data=tanks)