Files
OctoPrint/src/octoprint/plugins/softwareupdate/version_checks/never_current.py
T
Gina Häußge 87921061d9 SWU: New version checkers for debugging
* always_current: Always reports as current
  * never_current: Always reports as needing an update
2018-02-12 14:39:58 +01:00

15 lines
604 B
Python

# coding=utf-8
from __future__ import absolute_import, division, print_function
__license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html'
__copyright__ = "Copyright (C) 2018 The OctoPrint Project - Released under terms of the AGPLv3 License"
def get_latest(target, check, online=True):
local_version = check.get("local_version", "1.0.0")
remote_version = check.get("remote_version", "1.0.1")
information = dict(local=dict(name=local_version, value=local_version),
remote=dict(name=remote_version, value=remote_version))
return information, False