Fix check MISP latest version

pull/21/head v2.4.48.1
Raphaël Vinot 2016-06-15 09:44:36 +09:00
parent 234de2f4d1
commit fe8415dbc7
2 changed files with 2 additions and 2 deletions

View File

@ -1,3 +1,3 @@
__version__ = '2.4.48'
__version__ = '2.4.48.1'
from .api import PyMISP, PyMISPError, NewEventError, NewAttributeError, MissingDependency, NoURL, NoKey

View File

@ -971,7 +971,7 @@ class PyMISP(object):
"""
Get the most recent version from github
"""
r = requests.get('https://raw.githubusercontent.com/MISP/MISP/master/VERSION.json')
r = requests.get('https://raw.githubusercontent.com/MISP/MISP/2.4/VERSION.json')
if r.status_code == 200:
master_version = json.loads(r.text)
return {'version': '{}.{}.{}'.format(master_version['major'], master_version['minor'], master_version['hotfix'])}