Skip to content

Commit ce354b8

Browse files
committed
change date to day
1 parent 7bdfd2b commit ce354b8

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

lambda_data_logger/main.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,11 @@ def handler(event, context):
124124
dates_added = []
125125

126126
# Append the new usage data to the historic_usage_data.json
127-
for day in usage_data:
128-
if not any(d["day"] == day["day"] for d in historic_usage):
129-
historic_usage.append(day)
127+
for date in usage_data:
128+
if not any(d["date"] == date["date"] for d in historic_usage):
129+
historic_usage.append(date)
130130

131-
dates_added.append(day["day"])
131+
dates_added.append(date["date"])
132132

133133
logger.info(
134134
f"New usage data added to {object_name}",

0 commit comments

Comments
 (0)