goodmap 1.3.0__tar.gz → 1.3.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {goodmap-1.3.0 → goodmap-1.3.1}/PKG-INFO +1 -1
- {goodmap-1.3.0 → goodmap-1.3.1}/goodmap/core_api.py +30 -4
- {goodmap-1.3.0 → goodmap-1.3.1}/pyproject.toml +1 -1
- {goodmap-1.3.0 → goodmap-1.3.1}/LICENSE.md +0 -0
- {goodmap-1.3.0 → goodmap-1.3.1}/README.md +0 -0
- {goodmap-1.3.0 → goodmap-1.3.1}/goodmap/__init__.py +0 -0
- {goodmap-1.3.0 → goodmap-1.3.1}/goodmap/admin_api.py +0 -0
- {goodmap-1.3.0 → goodmap-1.3.1}/goodmap/api_models.py +0 -0
- {goodmap-1.3.0 → goodmap-1.3.1}/goodmap/clustering.py +0 -0
- {goodmap-1.3.0 → goodmap-1.3.1}/goodmap/config.py +0 -0
- {goodmap-1.3.0 → goodmap-1.3.1}/goodmap/core.py +0 -0
- {goodmap-1.3.0 → goodmap-1.3.1}/goodmap/data_models/location.py +0 -0
- {goodmap-1.3.0 → goodmap-1.3.1}/goodmap/data_validator.py +0 -0
- {goodmap-1.3.0 → goodmap-1.3.1}/goodmap/db.py +0 -0
- {goodmap-1.3.0 → goodmap-1.3.1}/goodmap/exceptions.py +0 -0
- {goodmap-1.3.0 → goodmap-1.3.1}/goodmap/formatter.py +0 -0
- {goodmap-1.3.0 → goodmap-1.3.1}/goodmap/goodmap.py +0 -0
- {goodmap-1.3.0 → goodmap-1.3.1}/goodmap/json_security.py +0 -0
- {goodmap-1.3.0 → goodmap-1.3.1}/goodmap/templates/goodmap-admin.html +0 -0
- {goodmap-1.3.0 → goodmap-1.3.1}/goodmap/templates/map.html +0 -0
|
@@ -371,11 +371,37 @@ def core_pages(
|
|
|
371
371
|
"""
|
|
372
372
|
categories_data = database.get_category_data()
|
|
373
373
|
result = []
|
|
374
|
+
|
|
375
|
+
categories_options_help = categories_data.get("categories_options_help", {})
|
|
376
|
+
|
|
374
377
|
for key, options in categories_data["categories"].items():
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
378
|
+
category_entry = {
|
|
379
|
+
"key": key,
|
|
380
|
+
"name": gettext(key),
|
|
381
|
+
"options": make_tuple_translation(options),
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
if feature_flags.get("CATEGORIES_HELP", False):
|
|
385
|
+
option_help_list = categories_options_help.get(key, [])
|
|
386
|
+
proper_options_help = []
|
|
387
|
+
for option in option_help_list:
|
|
388
|
+
proper_options_help.append(
|
|
389
|
+
{option: gettext(f"categories_options_help_{option}")}
|
|
390
|
+
)
|
|
391
|
+
category_entry["options_help"] = proper_options_help
|
|
392
|
+
|
|
393
|
+
result.append(category_entry)
|
|
394
|
+
|
|
395
|
+
response = {"categories": result}
|
|
396
|
+
|
|
397
|
+
if feature_flags.get("CATEGORIES_HELP", False):
|
|
398
|
+
categories_help = categories_data.get("categories_help", [])
|
|
399
|
+
proper_categories_help = []
|
|
400
|
+
for option in categories_help:
|
|
401
|
+
proper_categories_help.append({option: gettext(f"categories_help_{option}")})
|
|
402
|
+
response["categories_help"] = proper_categories_help
|
|
403
|
+
|
|
404
|
+
return jsonify(response)
|
|
379
405
|
|
|
380
406
|
@core_api_blueprint.route("/languages", methods=["GET"])
|
|
381
407
|
@spec.validate()
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|