Skip to content
Snippets Groups Projects

improve cameras

Merged Aymeric Chaumont requested to merge cleanify-cams into main
+ 1
1
@@ -75,4 +75,4 @@ async def handle_cameras():
db.add(db_record)
db.commit()
await manager.broadcast(json.dumps({"type": "data"}))
time.sleep(60 - (datetime.now() - current_date).total_seconds())
time.sleep(max(0, 60 - (datetime.now() - current_date).total_seconds()))
Loading