Removed print statements
This commit is contained in:
@@ -30,7 +30,6 @@ class EngieAPI:
|
|||||||
try:
|
try:
|
||||||
with open("EngieCache.json", "r") as f:
|
with open("EngieCache.json", "r") as f:
|
||||||
cache = json.load(f)
|
cache = json.load(f)
|
||||||
print(cache)
|
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
cache = {}
|
cache = {}
|
||||||
|
|
||||||
@@ -54,7 +53,6 @@ class EngieAPI:
|
|||||||
|
|
||||||
values = []
|
values = []
|
||||||
for j in res.json()[0]["Points"]:
|
for j in res.json()[0]["Points"]:
|
||||||
print(j)
|
|
||||||
# check if the Date is the same as the one requested, attention to the timezone
|
# check if the Date is the same as the one requested, attention to the timezone
|
||||||
if datetime.strptime(j["Date"], date_format).date().strftime(
|
if datetime.strptime(j["Date"], date_format).date().strftime(
|
||||||
"%Y-%m-%d"
|
"%Y-%m-%d"
|
||||||
|
|||||||
Reference in New Issue
Block a user