diff --git a/server/routes.py b/server/routes.py index e25741e..dae831b 100644 --- a/server/routes.py +++ b/server/routes.py @@ -235,6 +235,7 @@ def generateDeviceFingerprint(): if not db.session.query(Device).filter(Device.deviceName==fingerprint).first(): # Save as new Device device = Device(deviceName=fingerprint, connection=False) + device.lastConnection = int(round(time.time())) db.session.add(device) db.session.commit() break;