another hash

This commit is contained in:
Matthias Urlichs committed 2019-02-04 11:23:08 +01:00
1 parent 99d7157cb7
commit 41146c2b7c
1 file changed
+2 -2
+2 -2
View File
@@ -292,8 +292,8 @@ class TrackingPlugin(octoprint.plugin.SettingsPlugin,
return
sha = hashlib.sha1()
sha.update(payload.get("path"))
sha.update(unique_id)
sha.update(payload.get("path").encode("utf-8"))
sha.update(unique_id.encode("utf-8"))
track_event = None
args = dict(origin=payload.get("origin"), file=sha.hexdigest())