From b545c974620d65b40ff90ceb4cc4fd5160e501da Mon Sep 17 00:00:00 2001 From: Aymeric Chaumont <aymeric.chaumont@student-cs.fr> Date: Fri, 15 Jul 2022 11:36:11 +0200 Subject: [PATCH] linting --- backend/video-capture.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/backend/video-capture.py b/backend/video-capture.py index 610adad..c9086a8 100644 --- a/backend/video-capture.py +++ b/backend/video-capture.py @@ -18,8 +18,8 @@ cameras = [{ "user": "viarezocam", "password": "superponey", "stream": "stream1", - "framegap": 900, # 60 * camera frequency - "count": 0, # mandatory + "framegap": 900, # 60 * camera frequency + "count": 0, # mandatory "cap": None }] @@ -38,9 +38,9 @@ while True: count_prediction = np.sum(pred_map) waiting_time = timedelta(seconds=120 + count_prediction * 30) record = {"place": camera.place, - "date": current_time, - "density": count_prediction, - "waiting_time": waiting_time} + "date": current_time, + "density": count_prediction, + "waiting_time": waiting_time} db_record = models.Records(**record) db.add(db_record) db.commit() -- GitLab