Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -264,13 +264,13 @@ def calculate_equivalent(manual, manual_RH_O, manual_RH_D, requer, docs, it, pro
|
|
| 264 |
# results_df.to_excel(excel_file, index=False)
|
| 265 |
|
| 266 |
# Verifica se o arquivo já existe
|
| 267 |
-
if os.path.exists('
|
| 268 |
-
existing_df = pd.read_excel('
|
| 269 |
updated_df = pd.concat([existing_df, results_df], ignore_index=True)
|
| 270 |
if incluir == "Sim":
|
| 271 |
-
updated_df.to_excel('
|
| 272 |
else:
|
| 273 |
-
results_df.to_excel('
|
| 274 |
|
| 275 |
|
| 276 |
#---------------------------------------------------------MAPA---------------------------------------------------------#
|
|
@@ -279,7 +279,7 @@ def calculate_equivalent(manual, manual_RH_O, manual_RH_D, requer, docs, it, pro
|
|
| 279 |
|
| 280 |
#-------------------------------------------------------OUTPUTS--------------------------------------------------------#
|
| 281 |
|
| 282 |
-
return documentação, título, introdução, resultados, mapa, pdf_file, '
|
| 283 |
|
| 284 |
#------------------------------------------------------INTERFACE-------------------------------------------------------#
|
| 285 |
|
|
|
|
| 264 |
# results_df.to_excel(excel_file, index=False)
|
| 265 |
|
| 266 |
# Verifica se o arquivo já existe
|
| 267 |
+
if os.path.exists('Planilha_histórico_IT.xlsx'):
|
| 268 |
+
existing_df = pd.read_excel('Planilha_histórico_IT.xlsx')
|
| 269 |
updated_df = pd.concat([existing_df, results_df], ignore_index=True)
|
| 270 |
if incluir == "Sim":
|
| 271 |
+
updated_df.to_excel('Planilha_histórico_IT.xlsx', index=False)
|
| 272 |
else:
|
| 273 |
+
results_df.to_excel('Planilha_histórico_IT.xlsx', index=False)
|
| 274 |
|
| 275 |
|
| 276 |
#---------------------------------------------------------MAPA---------------------------------------------------------#
|
|
|
|
| 279 |
|
| 280 |
#-------------------------------------------------------OUTPUTS--------------------------------------------------------#
|
| 281 |
|
| 282 |
+
return documentação, título, introdução, resultados, mapa, pdf_file, 'Planilha_histórico_IT.xlsx' #, 'Informação Técnica.doc'
|
| 283 |
|
| 284 |
#------------------------------------------------------INTERFACE-------------------------------------------------------#
|
| 285 |
|