From c93b33755003d4b21397e3340751c063c0dd1e49 Mon Sep 17 00:00:00 2001 From: defausti <34766744+defausti@users.noreply.github.com> Date: Fri, 11 Feb 2022 18:37:11 +0100 Subject: [PATCH] Update app.py --- cosmo-backend/python-server/app.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cosmo-backend/python-server/app.py b/cosmo-backend/python-server/app.py index 90dfbf3..f76a4d1 100644 --- a/cosmo-backend/python-server/app.py +++ b/cosmo-backend/python-server/app.py @@ -79,7 +79,7 @@ def load_file_intraEU(): #print(df_transportIntra.info()) return df_transportIntra - +''' def build_NTSR_dict(): #build dict mapping NTSR prod and viceversa NTSR_prod=pd.read_csv(NTSR_PROD_FILE,"\t",index_col=0)#.to_dict() @@ -90,7 +90,7 @@ def build_NTSR_dict(): prod_NTSR_dict=prod_NTSR_dict[prod_NTSR_dict['0'].str.len()==NTSR_DIGITS] prod_NTSR_dict=prod_NTSR_dict.set_index("AGRICULTURAL PRODUCTS AND LIVE ANIMALS").to_dict()["0"] return prod_NTSR_dict - +''' def estrai_tabella_per_grafo(tg_period,tg_perc,listaMezzi,flow,product,criterio,selezioneMezziEdges,df_transport_estrazione): #estraggo dalla tabella solo le informazioni richieste nei filtri richiesti al runtime logging.info("### estrai_tabella_per_grafo...") @@ -259,7 +259,7 @@ def jsonpos2coord(jsonpos): df_transport = load_files_available() df_transportIntra = load_file_intraEU() -prod_NTSR_dict=build_NTSR_dict() +#prod_NTSR_dict=build_NTSR_dict() from flask import Flask,request,Response from flask_cors import CORS