Fix flake8 errors
All checks were successful
continuous-integration/drone Build is passing

This commit is contained in:
Lauri Võsandi 2022-08-03 08:02:53 +03:00
parent 05b5bc30f2
commit eebd2f3d96
2 changed files with 22 additions and 28 deletions

View File

@ -1,3 +0,0 @@
[flake8]
inline-quotes = "
indent-size = 4

View File

@ -116,7 +116,6 @@ gauge_queue_frames.labels("hold").set(0)
gauge_queue_frames.labels("upload").set(0) gauge_queue_frames.labels("upload").set(0)
counter_frames.labels("motion").inc(0) counter_frames.labels("motion").inc(0)
assert SLIDE_WINDOW <= 8 # This is 256 frames which should be enough assert SLIDE_WINDOW <= 8 # This is 256 frames which should be enough
@ -273,9 +272,7 @@ async def motion_detector(reference_frame, download_queue, upload_queue):
"screenshots": [], "screenshots": [],
"action": "event", "action": "event",
} }
}, }, upsert=True, return_document=ReturnDocument.AFTER)
upsert = True,
return_document=ReturnDocument.AFTER)
app.ctx.event_id = event_id = result["_id"] app.ctx.event_id = event_id = result["_id"]
# Handle buffering frames prior event start # Handle buffering frames prior event start