File tree 2 files changed +12
-1
lines changed
octoprint_PrintJobHistory/test
2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change
1
+
2
+ from octoprint .plugins .softwareupdate .version_checks import github_release
3
+
4
+ result = github_release ._is_current (dict (
5
+ local = dict (value = "1.11.1-dev" ),
6
+ remote = dict (value = "1.12.dev1" )),
7
+ "python" , force_base = False )
8
+ if (result ):
9
+ print ("Locale Version is newer or equal" )
10
+ else :
11
+ print ("Remote Version is newer, update available" )
Original file line number Diff line number Diff line change 14
14
plugin_name = "Print Job History"
15
15
16
16
# The plugin's version. Can be overwritten within OctoPrint's internal data via __plugin_version__ in the plugin module
17
- plugin_version = "1.11.1-dev "
17
+ plugin_version = "1.12.dev1 "
18
18
19
19
# The plugin's description. Can be overwritten within OctoPrint's internal data via __plugin_description__ in the plugin
20
20
# module
You can’t perform that action at this time.
0 commit comments