Skip to content
This repository has been archived by the owner on Oct 22, 2020. It is now read-only.

Commit

Permalink
Fix update check version
Browse files Browse the repository at this point in the history
  • Loading branch information
corbindavenport committed Feb 3, 2018
1 parent 31c5fbc commit 7e9e060
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tootbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 259,7 @@ def make_post(post_dict):
with urllib.request.urlopen("https://raw.githubusercontent.com/corbindavenport/tootbot/update-check/current-version.txt") as url:
s = url.read()
new_version = s.decode("utf-8").rstrip()
current_version = 3.0 # Current version of script
current_version = 1.0 # Current version of script
if (current_version < float(new_version)):
print('[WARN] A new version of Tootbot (' str(new_version) ') is available! (you have ' str(current_version) ')')
print ('[WARN] Get the latest update from here: https://github.com/corbindavenport/tootbot/releases')
Expand Down

0 comments on commit 7e9e060

Please sign in to comment.