Merge pull request #866 from jberry-suse/news-web-leap-format
factory-package-news-web: do not restrict version to int.
This commit is contained in:
commit
28ce538ac0
@ -80,10 +80,9 @@ def current():
|
||||
return "", 404
|
||||
return os.readlink(fn)
|
||||
|
||||
@app.route('/diff/<int:version>')
|
||||
@app.route('/diff/<version>')
|
||||
def diff(version):
|
||||
_dir = get_dir(request.url_root)
|
||||
version = str(version)
|
||||
fn = os.path.join(_dir, 'current')
|
||||
if not os.path.exists(fn):
|
||||
return "current version doesn't exist", 404
|
||||
|
Loading…
x
Reference in New Issue
Block a user