Skip to content

Commit e0cc395

Browse files
committed
Put params in hash digest
1 parent b8b2575 commit e0cc395

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

auto_editor/analyze.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,10 @@ def iter_motion(
155155

156156
def obj_tag(path: Path, kind: str, tb: Fraction, obj: Sequence[object]) -> str:
157157
mod_time = int(path.stat().st_mtime)
158-
key = f"{path}:{mod_time:x}:{tb.numerator}:{tb.denominator}:"
158+
key = f"{path}:{mod_time:x}:{tb}:" + ",".join(f"{v}" for v in obj)
159159
part1 = sha1(key.encode()).hexdigest()[:16]
160160

161-
return f"{part1}{kind}," + ",".join(f"{v}" for v in obj)
161+
return f"{part1}{kind}"
162162

163163

164164
@dataclass(slots=True)

0 commit comments

Comments
 (0)