mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-09-19 17:51:34 +02:00
parent
80144fe524
commit
6e3b40eaee
@ -308,7 +308,12 @@ class RecordingCleanup(threading.Thread):
|
||||
now - datetime.timedelta(days=config.record.continuous.days)
|
||||
).timestamp()
|
||||
motion_expire_date = (
|
||||
now - datetime.timedelta(days=config.record.motion.days)
|
||||
now
|
||||
- datetime.timedelta(
|
||||
days=max(
|
||||
config.record.motion.days, config.record.continuous.days
|
||||
) # can't keep motion for less than continuous
|
||||
)
|
||||
).timestamp()
|
||||
|
||||
# Get all the reviews to check against
|
||||
|
@ -363,6 +363,10 @@ def migrate_017_0(config: dict[str, dict[str, Any]]) -> dict[str, dict[str, Any]
|
||||
if days:
|
||||
if mode == "all":
|
||||
continuous["days"] = days
|
||||
|
||||
# if a user was keeping all for number of days
|
||||
# we need to keep motion and all for that number of days
|
||||
motion["days"] = days
|
||||
else:
|
||||
motion["days"] = days
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user