mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-07 03:35:26 +03:00
Formatting
This commit is contained in:
parent
63a61f288d
commit
03d3ae3d62
@ -108,10 +108,7 @@ def sync_recordings(limited: bool) -> None:
|
||||
|
||||
if limited:
|
||||
# get recording files from last 36 hours
|
||||
hour_check = f"{RECORD_DIR}/{(
|
||||
datetime.datetime.now().astimezone(datetime.timezone.utc)
|
||||
- datetime.timedelta(hours=36)
|
||||
).strftime('%Y-%m-%d/%H')}"
|
||||
hour_check = f"{RECORD_DIR}/{(datetime.datetime.now().astimezone(datetime.timezone.utc) - datetime.timedelta(hours=36)).strftime('%Y-%m-%d/%H')}"
|
||||
files_on_disk = {
|
||||
os.path.join(root, file)
|
||||
for root, _, files in os.walk(RECORD_DIR)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user