Skip to content

Commit

Permalink
Small fix for print time for cancelled prints
Browse files Browse the repository at this point in the history
  • Loading branch information
imrahil committed Jan 2, 2017
1 parent fb0ef53 commit f84fc8a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions octoprint_printhistory/eventHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ def eventHandler(self, event, payload):
if "time" in payload:
currentFile["printTime"] = payload["time"]
else:
printTime = self._comm.getPrintTime()
currentFile["printTime"] = printTime if printTime is not None else ""
printTime = self._comm.getPrintTime() if self._comm is not None else ""
currentFile["printTime"] = printTime


# when print happened and what was the result
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
plugin_identifier = "printhistory"
plugin_package = "octoprint_%s" % plugin_identifier
plugin_name = "OctoPrint-PrintHistory"
plugin_version = "1.1.0"
plugin_version = "1.1.1"
plugin_description = "Saves filename, print time and filament usage for each print"
plugin_author = "Jarek Szczepanski"
plugin_author_email = "[email protected]"
Expand Down

0 comments on commit f84fc8a

Please sign in to comment.