From 27ce91474d24389dc72062214244e7100f154f9d Mon Sep 17 00:00:00 2001 From: niphlod Date: Fri, 7 Oct 2016 13:10:44 +0200 Subject: [PATCH] fix issue with regex --- applications/admin/controllers/default.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applications/admin/controllers/default.py b/applications/admin/controllers/default.py index e9560edfe..6ad8b332f 100644 --- a/applications/admin/controllers/default.py +++ b/applications/admin/controllers/default.py @@ -310,7 +310,7 @@ def __call__(self, value): regex = re.compile('^\w+$') if is_manager(): - apps = [a for a in os.listdir(apath(r=request)) if regex.match(f) and + apps = [a for a in os.listdir(apath(r=request)) if regex.match(a) and a != '__pycache__'] else: apps = [a.name for a in db(db.app.owner == auth.user_id).select()]