summaryrefslogtreecommitdiffstats
path: root/ogcp/views.py
diff options
context:
space:
mode:
authorJavier Hernandez <jhernandez@soleta.eu>2024-01-22 11:11:51 +0100
committerOpenGnSys Support Team <soporte-og@soleta.eu>2024-01-22 19:41:42 +0100
commit4060b64612c37a9606b5c072fa801e8faad35aa9 (patch)
tree876da374b46c36cc6c8645754c410f03633c6c50 /ogcp/views.py
parent3b319a17a8526fdc507eaad078421d6803d40a46 (diff)
views: Fix traceback due to missing translation
Fix crash when adding a folder if no room or center is selected because no translation is available. plan is to update translations in a follow up patch.
Diffstat (limited to 'ogcp/views.py')
-rw-r--r--ogcp/views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ogcp/views.py b/ogcp/views.py
index 77e43f9..e3f1626 100644
--- a/ogcp/views.py
+++ b/ogcp/views.py
@@ -1090,10 +1090,10 @@ def action_folder_add():
room = params.get('scope-room')
center = params.get('scope-center')
if room and center:
- flash(_('Please, select either a room or a center'), category='error')
+ flash(('Please, select either a room or a center'), category='error')
return redirect(url_for('scopes'))
if not room and not center:
- flash(_('Please, select a room or a center'), category='error')
+ flash(('Please, select a room or a center'), category='error')
return redirect(url_for('scopes'))
if params.get('folder'):
flash(('Error: A folder has been selected. Please, select a room or a center'), category='error')