diff --git a/paramecio/app.py b/paramecio/app.py
index 0169c26..d8fc6b6 100644
--- a/paramecio/app.py
+++ b/paramecio/app.py
@@ -94,7 +94,7 @@ def prepare_app():
for controller in dir_controllers:
- if controller.find('.py')!=-1 and controller.find('__init__')==-1:
+ if controller.endswith('.py') and controller.find('__init__')==-1:
controller_py=controller.replace('.py', '')
@@ -104,9 +104,11 @@ def prepare_app():
if added_app[1]!='':
- app_name=getattr(a, added_app[1])
+ if controller_py=='app':
+
+ app_name=getattr(a, added_app[1])
- app_mounts[added_app[2]]=app_name
+ app_mounts[added_app[2]]=app_name
arr_module_path[key_app]=os.path.dirname(sys.modules[module_app].__file__)
diff --git a/paramecio/modules/admin2/app.py b/paramecio/modules/admin2/app.py
index 52583c4..d07f3e6 100644
--- a/paramecio/modules/admin2/app.py
+++ b/paramecio/modules/admin2/app.py
@@ -21,10 +21,11 @@ from paramecio.libraries.sendmail import SendMail
from paramecio.libraries.db.formsutils import check_csrf
from paramecio.modules.admin2.libraries.config import modules_admin
from paramecio.modules.admin2.libraries.check_login_tries import check_login_tries
+from paramecio.modules.admin2 import admin_app
-admin_app=Bottle()
-admin_app.install(SessionPlugin())
-admin_app.install(check_login)
+#admin_app=Bottle()
+#admin_app.install(SessionPlugin())
+#admin_app.install(check_login)
env=env_theme(__file__)
t=PTemplate(env)
diff --git a/paramecio/modules/admin2/ausers.py b/paramecio/modules/admin2/ausers.py
index 9e85447..6376b54 100644
--- a/paramecio/modules/admin2/ausers.py
+++ b/paramecio/modules/admin2/ausers.py
@@ -152,6 +152,6 @@ def user_options(url, id, arr_row):
options=[]
options.append(''+_('Edit')+'')
if arr_row['privileges']==1:
- options.append(f''+_('User access')+'')
+ options.append(''+_('User access')+'')
options.append(''+_('Delete')+'')
return options