Commit 995a8573 authored by Kristian Tan's avatar Kristian Tan

Displaying daily total on html

parent 16f77e3d
...@@ -87,6 +87,7 @@ def toggle_pin(change_pin): ...@@ -87,6 +87,7 @@ def toggle_pin(change_pin):
start_date = pins[change_pin]['on_date'] start_date = pins[change_pin]['on_date']
# If there is already an entry for today, update on time # If there is already an entry for today, update on time
if latest_entry:
print(latest_entry.date) print(latest_entry.date)
print(start_date) print(start_date)
if latest_entry and latest_entry.date == start_date: if latest_entry and latest_entry.date == start_date:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment