Skip to content
Snippets Groups Projects
Commit a0407e0f authored by Bjarke Madsen's avatar Bjarke Madsen
Browse files

cleanup

parent 123977af
No related branches found
No related tags found
No related merge requests found
...@@ -8,24 +8,13 @@ import logging ...@@ -8,24 +8,13 @@ import logging
setup_logging() setup_logging()
logger = logging.getLogger('xlsx_to_csv_sheet_parsing_task') logger = logging.getLogger(__name__)
EXCEL_FILE = os.path.join( EXCEL_FILE = os.path.join(
os.path.dirname(__file__), "xlsx", os.path.dirname(__file__), "xlsx",
"2021_Organisation_DataSeries.xlsx") "2021_Organisation_DataSeries.xlsx")
def import_countries():
with db.session_scope() as session:
with open('csv/BudgetCsvFile.csv') as csvfile:
reader = csv.DictReader(csvfile)
for row in reader:
data = model.BudgetEntry(
nren=row[0], budget=row[1], year=row[2])
data.save()
session.add(data)
def fetch_budget_excel_data(): def fetch_budget_excel_data():
# load the xlsx file # load the xlsx file
......
...@@ -11,7 +11,7 @@ from compendium_v2.survey_db import model as survey_model ...@@ -11,7 +11,7 @@ from compendium_v2.survey_db import model as survey_model
setup_logging() setup_logging()
logger = logging.getLogger('survey_publisher_v1') logger = logging.getLogger('survey-publisher-v1')
def init_db(config): def init_db(config):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment