Skip to content
Snippets Groups Projects
Commit d1fe126b authored by Remco Tukker's avatar Remco Tukker
Browse files

fix tox issues

parent ba3d45f7
No related branches found
No related tags found
No related merge requests found
......@@ -495,6 +495,7 @@ def fetch_remit_excel_data():
logger.warning(f'unknown remit: {excel_remit}')
result = {}
def create_points_for_year(year, start_column):
for i in range(8, 51):
nren_name = rows[i][start_column].value
......@@ -522,8 +523,8 @@ def fetch_nr_connected_excel_data():
sheet_name = "Connected Institutions"
ws = wb[sheet_name]
rows = list(ws.rows)
result = {}
def create_points_for_year(year, start_column):
for i in range(5, 48):
nren_name = rows[i][start_column].value
......@@ -548,8 +549,8 @@ def fetch_market_share_excel_data():
sheet_name = "Table Market Share"
ws = wb[sheet_name]
rows = list(ws.rows)
result = {}
def create_points_for_year(year, start_column):
for i in range(8, 51):
nren_name = rows[i][start_column].value
......@@ -576,8 +577,8 @@ def fetch_users_served_excel_data():
sheet_name = "Users"
ws = wb[sheet_name]
rows = list(ws.rows)
result = {}
def create_points_for_year(year, start_column):
for i in range(4, 47):
nren_name = rows[i][start_column].value
......@@ -602,8 +603,8 @@ def fetch_typical_speed_excel_data():
sheet_name = "Table _Typical IP Link capacity"
ws = wb[sheet_name]
rows = list(ws.rows)
result = {}
def create_points_for_year(year, start_column):
for i in range(33, 76):
nren_name = rows[i][start_column].value
......@@ -630,8 +631,8 @@ def fetch_highest_speed_excel_data():
sheet_name = "Table _Highest IP Link capacity"
ws = wb[sheet_name]
rows = list(ws.rows)
result = {}
def create_points_for_year(year, start_column):
for i in range(33, 76):
nren_name = rows[i][start_column].value
......@@ -658,8 +659,8 @@ def fetch_highest_speed_proportion_excel_data():
sheet_name = "Aver High cap conn Share"
ws = wb[sheet_name]
rows = list(ws.rows)
result = {}
def create_points_for_year(year, start_column):
for i in range(5, 48):
nren_name = rows[i][start_column].value
......@@ -700,6 +701,7 @@ def fetch_carriers_excel_data():
logger.warning(f'unknown carrier: {excel_carrier}')
result = {}
def create_points_for_year(year, start_column):
for i in range(3, 46):
nren_name = rows[i][start_column].value
......@@ -724,8 +726,8 @@ def fetch_growth_excel_data():
sheet_name = "Table Traffic Growth % "
ws = wb[sheet_name]
rows = list(ws.rows)
result = {}
def create_points_for_year(year, start_column):
for i in range(5, 46):
nren_name = rows[i][start_column].value
......@@ -750,8 +752,8 @@ def fetch_average_traffic_excel_data():
sheet_name = "Average Traffic"
ws = wb[sheet_name]
rows = list(ws.rows)
result = {}
def create_points_for_year(year, start_column):
for i in range(5, 48):
nren_name = rows[i][start_column].value
......@@ -777,8 +779,8 @@ def fetch_peak_traffic_excel_data():
sheet_name = "Peak traffic"
ws = wb[sheet_name]
rows = list(ws.rows)
result = {}
def create_points_for_year(year, start_column):
for i in range(6, 49):
nren_name = rows[i][start_column].value
......
......@@ -433,19 +433,18 @@ def db_remote_campuses_migration(nren_dict):
def _cli(app):
with app.app_context():
nren_dict = helpers.get_uppercase_nren_dict()
# db_budget_migration(nren_dict)
# db_funding_migration(nren_dict)
# db_charging_structure_migration(nren_dict)
# db_staffing_migration(nren_dict)
# db_ecprojects_migration(nren_dict)
# db_organizations_migration(nren_dict)
# db_traffic_volume_migration(nren_dict)
# db_services_migration()
# db_nren_services_migration(nren_dict)
# db_connected_proportion_migration(nren_dict)
# db_connectivity_level_migration(nren_dict)
db_budget_migration(nren_dict)
db_funding_migration(nren_dict)
db_charging_structure_migration(nren_dict)
db_staffing_migration(nren_dict)
db_ecprojects_migration(nren_dict)
db_organizations_migration(nren_dict)
db_traffic_volume_migration(nren_dict)
db_services_migration()
db_nren_services_migration(nren_dict)
db_connected_proportion_migration(nren_dict)
db_connectivity_level_migration(nren_dict)
db_connection_carrier_migration(nren_dict)
db_connectivity_growth_migration(nren_dict)
db_connectivity_load_migration(nren_dict)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment