From 3164963f9bfb54784a82fddd37196a057195fe50 Mon Sep 17 00:00:00 2001 From: Bryan Cerrati Date: Mon, 23 Jun 2025 12:14:14 -0400 Subject: [PATCH] ETC --- app/db/keepalive.db | Bin 16384 -> 16384 bytes app/keep.py | 19 +++++++++++++++---- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/app/db/keepalive.db b/app/db/keepalive.db index 875f0a5b16ad484d915f7b167fbe4579d1c0791d..9354e251daaa8b36f918dfb5767f130049c60f1c 100644 GIT binary patch delta 44 ycmZo@U~Fh$oFL68HBrWyQEFqte0^bVUIri#U|`^X%72P~J^vK`%FTiT@Av`wh6{B7 delta 143 zcmZo@U~Fh$oFL68Fj2;tQD9@je0@PSUIri#U|`^X%D)5zHwy}s@F!Zy%gPocmLzB7 zr/', methods=["POST"]) def getalive(location): @@ -44,17 +51,21 @@ def getalive(location): location TEXT, date TEXT, time TEXT)""") + + # Get actual system-local time (assumed to be in ET) + now = datetime.now() + c.execute("""INSERT INTO keepalive2 (location, date, time) VALUES (?, ?, ?)""", (location, - date.today().strftime("%m/%d/%y"), - datetime.now().strftime("%H:%M:%S"))) + now.strftime("%m/%d/%y"), + now.strftime("%H:%M:%S"))) conn.commit() conn.close() - # Redirect to the same route with GET method return f"Keepalive recorded for {location}" + @keep.route('/loc//', methods=["GET"]) def show_location(location): return f"

Received keepalive from: {location}

"