feat: substituir guardar_json pelo utils.save_as_json

Mudei um pouco o save_as_json e talvez tenha ficado um pouco nojento porque não sabia muito bem como fazer uso das EVENT_COLS e STATION_COLS de dentro do utils.py
This commit is contained in:
aulojor
2025-11-15 22:26:26 -01:00
parent afef4c4d5c
commit a9839e64bf
2 changed files with 5 additions and 4 deletions

View File

@@ -137,7 +137,7 @@ def main():
fname = _get_usr_input("Nome do ficheiro a guardar? ")
if fname is None:
fname = "valores.json"
guardar_json(db, fname)
utils.save_as_json(db, fname, EVENT_COLS, STATION_COLS)
else:
retInfo = "Base de dados não encontrada!"