Update app.py

This commit is contained in:
Julien Malik 2014-12-13 22:14:45 +01:00
parent 805ceb79be
commit 3a7294ed02

5
app.py
View file

@ -284,8 +284,9 @@ def app_upgrade(auth, app=[], url=None, file=None):
upgraded_apps = []
# If no app is specified, upgrade all apps
if not app and (not url or file):
app = os.listdir(apps_setting_path)
if not app:
if (not url and not file):
app = os.listdir(apps_setting_path)
elif not isinstance(app, list):
app = [ app ]