Skip to content

Commit

Permalink
Merge ccbb4be into b4b3b1b
Browse files Browse the repository at this point in the history
  • Loading branch information
Flix6x committed Jun 19, 2023
2 parents b4b3b1b + ccbb4be commit 18156bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flexmeasures/cli/data_add.py
Original file line number Diff line number Diff line change
Expand Up @@ -1347,10 +1347,10 @@ def add_report( # noqa: C901
"Report computation done, but the report is empty.", **MsgStyle.WARN
)

# save the report it's not running in dry mode
# save the report if it's not running in dry mode
if not dry_run:
click.echo("Saving report to the database...")
save_to_db(result)
save_to_db(result.dropna())
db.session.commit()
click.secho(
"Success. The report has been saved to the database.",
Expand Down

0 comments on commit 18156bc

Please sign in to comment.