Commit 67501c7f authored by Kristian Tan's avatar Kristian Tan

String formatting

parent 9fb4cd39
......@@ -79,7 +79,7 @@ def toggle_pin(change_pin):
d = DailyUsage(date=pins[change_pin]['on_time'], hours=uptime)
print("===========")
print("DAILYUSAGE: " + d.id + ", " + d.date + ", " + d.hours)
print(d)
print("===========")
db.session.add(d)
......@@ -88,7 +88,7 @@ def toggle_pin(change_pin):
print("==========")
e = DailyUsage.query.filter_by(id=1)
print("DB ENTRY: " + e.id + ", " + e.date + ", " + e.hours)
print(e)
print("==========")
else:
message += " on."
......
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