From 007926d67e50166413b1220a8f55367e75eef416 Mon Sep 17 00:00:00 2001 From: Aymeric Chaumont <aymeric.chaumont@student-cs.fr> Date: Thu, 21 Jul 2022 14:08:41 +0200 Subject: [PATCH] linting --- backend/cameras.py | 43 +++++++++++++++++++++++++++++++++++++++++++ backend/db/crud.py | 2 +- 2 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 backend/cameras.py diff --git a/backend/cameras.py b/backend/cameras.py new file mode 100644 index 0000000..276a8d2 --- /dev/null +++ b/backend/cameras.py @@ -0,0 +1,43 @@ +restaurants = [ + { + "restaurant": "local", + "a_factor": 30, + "b_factor": 120, + "cameras": + [ + { + "IP": "10.148.38.3", + "user": "viarezocam", + "password": "superponey", + "stream": "stream1", + "mask_points": + [ + [ + [70, 370], + [420, 720], + [1280, 720], + [1280, 250], + [930, 215], + [450, 550], + [130, 350] + ] + ], + "checkouts": + [ + { + "x1": 380, + "x2": 435, + "y1": 740, + "y2": 780 + }, + { + "x1": 300, + "x2": 350, + "y1": 830, + "y2": 880 + } + ] + } + ] + } +] diff --git a/backend/db/crud.py b/backend/db/crud.py index 97bb655..6a9e3a0 100644 --- a/backend/db/crud.py +++ b/backend/db/crud.py @@ -231,7 +231,7 @@ def get_news(place: str, db: Session): next_timetable = None for time_slot in opening_hours: if current_date.time() < time_slot.open_time: - next_timetable=time_slot.open_time + next_timetable = time_slot.open_time break if not next_timetable: closure = db.query( -- GitLab