Commit d8e6c23b authored by prx's avatar prx

last fix for future upgrade alert

parent 181ee954
......@@ -46,7 +46,7 @@ watchlist_file = os.path.join(confdir, 'watchlist.pkl')
# Util global variables
progname = "dontpanic"
progurl = "http://3hg.toile-libre.org/dontpanic"
progversion = 1.9
progversion = 2.0
defaultconf = {'startperc': 7,
'uplimit': 20,
......@@ -107,7 +107,7 @@ def islastversion():
v = 0
try:
response = htmlget("{}/version".format(progurl))
v = float(response.text)
v = float(response)
except Exception as e:
logging.info("Can't check dontpanic version")
logging.info(e)
......
......@@ -24,7 +24,7 @@
</main>
%if islastv == False:
<a class="toupgradealert" href="http://3hg.toile-libre.org/download.html" target="_blank">{{tpl_not_last_version}}</a>
<a class="toupgradealert" href="http://3hg.toile-libre.org/dontpanic/download.html" target="_blank">{{tpl_not_last_version}}</a>
%end
% include('footer.tpl')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment