Skip to content

Commit

Permalink
Merge pull request #176 from pbranly/patch-2
Browse files Browse the repository at this point in the history
Patch 2
  • Loading branch information
m4dm4rtig4n authored Dec 6, 2022
2 parents 2f8be1b + 69c540a commit 2432d03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/influxdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def __init__(self, hostname, port, token, org="myelectricaldata.fr", bucket="mye
day = int(self.retention / 60 / 60 / 24)
app.LOG.warning([
f"<!> ATTENTION, l'InfluxDB est configuré avec une durée de retention de {day} jours.",
f" Toutes les données supérieurs à {day} jours ne seront jamais inséré dans celui-ci."
f" Toutes les données supérieures à {day} jours ne seront jamais insérées dans celui-ci."
])
else:
app.LOG.log([
Expand Down Expand Up @@ -159,4 +159,4 @@ def write(self, tags, date=None, fields=None, measurement="log"):
if fields is not None:
for key, value in fields.items():
record["fields"][key] = value
self.write_api.write(bucket=self.bucket, org=self.org, record=record)
self.write_api.write(bucket=self.bucket, org=self.org, record=record)

0 comments on commit 2432d03

Please sign in to comment.