From e0cc3958922a134a56217972035d0e65f0f2941a Mon Sep 17 00:00:00 2001 From: WyattBlue Date: Sun, 5 Jan 2025 16:44:55 -0500 Subject: [PATCH] Put params in hash digest --- auto_editor/analyze.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/auto_editor/analyze.py b/auto_editor/analyze.py index 54f1dc826..a699ca51b 100644 --- a/auto_editor/analyze.py +++ b/auto_editor/analyze.py @@ -155,10 +155,10 @@ def iter_motion( def obj_tag(path: Path, kind: str, tb: Fraction, obj: Sequence[object]) -> str: mod_time = int(path.stat().st_mtime) - key = f"{path}:{mod_time:x}:{tb.numerator}:{tb.denominator}:" + key = f"{path}:{mod_time:x}:{tb}:" + ",".join(f"{v}" for v in obj) part1 = sha1(key.encode()).hexdigest()[:16] - return f"{part1}{kind}," + ",".join(f"{v}" for v in obj) + return f"{part1}{kind}" @dataclass(slots=True)