Commit e0b9efbb authored by Kristian Tan's avatar Kristian Tan

Removed unnecesary conversion

parent dec6e403
......@@ -79,8 +79,7 @@ def toggle_pin(change_pin):
print("===========")
print("UPTIME STRING: " + uptime)
print("===========")
date = datetime.strptime(pins[change_pin]['on_time'], '%b %d %Y %I:%M%p')
d = DailyUsage(date=date, hours=uptime)
d = DailyUsage(date=pins[change_pin]['on_time'], hours=uptime)
db.session.add(d)
db.session.commit()
pins[change_pin]['on_time'] = None
......
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