Skip to content

Commit

Permalink
bug fix: when package upgrade available
Browse files Browse the repository at this point in the history
  • Loading branch information
usmannasir committed May 3, 2020
1 parent 332b9ff commit 27f4346
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion serverStatus/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -769,7 +769,8 @@ def fetchPackages(request):
upgrade = 'Not Needed'

if nowSplitted[1].split(' ')[3].find('upgradable') > -1:
upgrade = nowSplitted[1].split(' ')[3]
current = nowSplitted[1].split(' ')
upgrade = '%s %s %s' % (current[3], current[4], current[5])

dic = {'package': nowSplitted[0].split('/')[0], 'version': '%s %s' % (nowSplitted[1].split(' ')[1], nowSplitted[1].split(' ')[2]), 'upgrade': upgrade}

Expand Down

0 comments on commit 27f4346

Please sign in to comment.