mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
Count app fixes
This commit is contained in:
parent
779de154e4
commit
c893127201
1 changed files with 3 additions and 4 deletions
|
@ -614,13 +614,12 @@ def _installed_instance_number(app, last=False):
|
|||
return 0
|
||||
|
||||
for installed_app in installed_apps:
|
||||
if '__' in installed_app:
|
||||
if number == 0 and app == installed_app:
|
||||
number = 1
|
||||
elif '__' in installed_app:
|
||||
if app == installed_app[:installed_app.index('__')]:
|
||||
if int(installed_app[installed_app.index('__') + 2:]) > number:
|
||||
number = int(installed_app[installed_app.index('__') + 2:])
|
||||
else:
|
||||
if _is_installed(app):
|
||||
number = 1
|
||||
|
||||
return number
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue