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

String formatting

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