Skip to content

Commit

Permalink
Missing args handling for show_hourly in InfluxDB
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianTremblay committed Oct 12, 2021
1 parent 2693a20 commit 5224f43
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyhydroquebec/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def main():
elif args.dump_data:
pprint(results[0].__dict__)
elif args.influxdb:
output_influx(results[0])
output_influx(results[0], args.hourly)
elif args.json or args.detailled_energy:
output_json(results[0], args.hourly)
else:
Expand Down
2 changes: 1 addition & 1 deletion pyhydroquebec/outputter.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def output_influx(customer, show_hourly=False):
#"batch_size" : 100,
}
db = InfluxDB(_params)
db.write_data_to_db(customer)
db.write_data_to_db(customer, show_hourly=show_hourly)
print("Sent this to InfluxDB")
output_text(customer, show_hourly=show_hourly)

Expand Down

0 comments on commit 5224f43

Please sign in to comment.