Skip to content

Commit

Permalink
0.1.2 Release
Browse files Browse the repository at this point in the history
0.1.2 Release
  • Loading branch information
jslay88 authored May 11, 2018
2 parents 2e1732e + b5ebbf6 commit ff2730d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions octoprint_dropbox_timelapse/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@

class DropboxTimelapsePlugin(octoprint.plugin.SettingsPlugin,
octoprint.plugin.EventHandlerPlugin,
octoprint.plugin.TemplatePlugin):
octoprint.plugin.TemplatePlugin,
octoprint.plugin.RestartNeedingPlugin):

def get_settings_defaults(self):
return dict(
Expand Down Expand Up @@ -53,7 +54,8 @@ def delete_after_upload(self):
return self._settings.get_boolean(['delete_after_upload'])

def on_event(self, event, payload):
if event == 'MovieDone':
from octoprint.events import Events
if event == Events.MOVIE_DONE:
self.upload_timelapse(payload)

def upload_timelapse(self, payload):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
plugin_name = "OctoPrint-Dropbox-Timelapse"

# The plugin's version. Can be overwritten within OctoPrint's internal data via __plugin_version__ in the plugin module
plugin_version = "0.1.1"
plugin_version = "0.1.2"

# The plugin's description. Can be overwritten within OctoPrint's internal data via __plugin_description__ in the plugin
# module
Expand Down

0 comments on commit ff2730d

Please sign in to comment.