🐛 tracking: Use correct payload roperty for elapsed time
This commit is contained in:
1 parent
7c75c882d3
commit
caad7a3f60
1 file changed
+2
-2
@@ -302,7 +302,7 @@ class TrackingPlugin(octoprint.plugin.SettingsPlugin,
|
||||
track_event = "print_started"
|
||||
elif event == Events.PRINT_DONE:
|
||||
try:
|
||||
elapsed = int(payload.get("elapsed", 0))
|
||||
elapsed = int(payload.get("time", 0))
|
||||
if elapsed:
|
||||
args["elapsed"] = elapsed
|
||||
except ValueError:
|
||||
@@ -310,7 +310,7 @@ class TrackingPlugin(octoprint.plugin.SettingsPlugin,
|
||||
track_event = "print_done"
|
||||
elif event == Events.PRINT_FAILED:
|
||||
try:
|
||||
elapsed = int(payload.get("elapsed", 0))
|
||||
elapsed = int(payload.get("time", 0))
|
||||
if elapsed:
|
||||
args["elapsed"] = elapsed
|
||||
except ValueError:
|
||||
|
||||
Reference in new issue
Block a user