Skip to content

Commit

Permalink
Put params in hash digest
Browse files Browse the repository at this point in the history
  • Loading branch information
WyattBlue committed Jan 5, 2025
1 parent b8b2575 commit e0cc395
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions auto_editor/analyze.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e0cc395

Please sign in to comment.