remove __pycache__ from the list of apps

in case someone wonders how many core devs are actively using the admin
app...here's the evidence ^_^'
This commit is contained in:
niphlod
2016-10-04 00:30:11 +02:00
parent 4f68c418f8
commit a1c1d1357f
+4 -3
View File
@@ -310,12 +310,13 @@ def site():
regex = re.compile('^\w+$')
if is_manager():
apps = [f for f in os.listdir(apath(r=request)) if regex.match(f)]
apps = [a for a in os.listdir(apath(r=request)) if regex.match(f) and
a != '__pycache__']
else:
apps = [f.name for f in db(db.app.owner == auth.user_id).select()]
apps = [a.name for a in db(db.app.owner == auth.user_id).select()]
if FILTER_APPS:
apps = [f for f in apps if f in FILTER_APPS]
apps = [a for a in apps if a in FILTER_APPS]
apps = sorted(apps, key=lambda a: a.upper())
myplatform = platform.python_version()