Skip to content

Commit

Permalink
Revert "modules: list related datasets"
Browse files Browse the repository at this point in the history
This reverts commit 9c7a34d.
  • Loading branch information
bouttier committed Nov 15, 2022
1 parent 1cbf284 commit 7463c64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/geonature/core/gn_commons/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def list_modules():
"""
params = request.args
q = TModules.query.options(joinedload(TModules.objects), joinedload(TModules.datasets))
q = TModules.query.options(joinedload(TModules.objects))
if "exclude" in params:
q = q.filter(TModules.module_code.notin_(params.getlist("exclude")))
q = q.order_by(TModules.module_order.asc()).order_by(TModules.module_label.asc())
Expand All @@ -58,7 +58,7 @@ def list_modules():
continue
cruved = get_scopes_by_action(module_code=module.module_code)
if cruved["R"] > 0:
module_dict = module.as_dict(fields=["objects", "datasets"])
module_dict = module.as_dict(fields=["objects"])
module_dict["cruved"] = cruved
if module.active_frontend:
try:
Expand Down

0 comments on commit 7463c64

Please sign in to comment.