Commit 159b1f97 authored by Kristian Tan's avatar Kristian Tan

query db

parent 19424b6d
......@@ -34,6 +34,7 @@ class DailyUsage(db.Model):
db.create_all()
print(DailyUsage.query.all())
# Create dictionary to store pin info
pins = {
......@@ -62,14 +63,6 @@ def main():
@app.route("/toggle/<change_pin>")
def toggle_pin(change_pin):
# TODO: change_pin is sometimes favicon.co for some reason? Fix
print("========")
print(change_pin)
print("========")
if change_pin == 'favicon.ico':
pass
change_pin = int(change_pin)
device_name = pins[change_pin]['name']
......
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