diff --git a/frigate/http.py b/frigate/http.py index c453f2a75..2a581ac9f 100644 --- a/frigate/http.py +++ b/frigate/http.py @@ -990,7 +990,7 @@ def events(): if time_range != DEFAULT_TIME_RANGE: # get timezone arg to ensure browser times are used tz_name = request.args.get("timezone", default="utc", type=str) - hour_modifier, minute_modifier, seconds_offset = get_tz_modifiers(tz_name) + hour_modifier, minute_modifier, _ = get_tz_modifiers(tz_name) times = time_range.split(",") time_after = times[0] diff --git a/migrations/020_update_index_recordings.py b/migrations/020_update_index_recordings.py index bb4940bd1..830bd34a6 100644 --- a/migrations/020_update_index_recordings.py +++ b/migrations/020_update_index_recordings.py @@ -26,18 +26,14 @@ SQL = pw.SQL def migrate(migrator, database, fake=False, **kwargs): - migrator.sql( - 'DROP INDEX recordings_end_time_start_time' - ) + migrator.sql('DROP INDEX recordings_end_time_start_time') migrator.sql( 'CREATE INDEX "recordings_camera_start_time_end_time" ON "recordings" ("camera", "start_time" DESC, "end_time" DESC)' ) migrator.sql( 'CREATE INDEX "recordings_api_recordings_summary" ON "recordings" ("camera", "start_time" DESC, "duration", "motion", "objects")' ) - migrator.sql( - 'CREATE INDEX "recordings_start_time" ON "recordings" ("start_time")' - ) + migrator.sql('CREATE INDEX "recordings_start_time" ON "recordings" ("start_time")') def rollback(migrator, database, fake=False, **kwargs):