Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IMPORT] update import report #3223

Merged
merged 4 commits into from
Oct 11, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 2 additions & 10 deletions backend/geonature/core/imports/routes/imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -660,15 +660,8 @@ def export_pdf(scope, imprt):
"""
if not imprt.has_instance_permission(scope):
raise Forbidden
ctx = imprt.as_dict(
fields=[
"errors",
"errors.type",
"errors.entity",
"dataset.dataset_name",
"destination.statistics_labels",
]
)
ctx = imprt.as_dict()
print(ctx)
jacquesfize marked this conversation as resolved.
Show resolved Hide resolved

ctx["map"] = request.form.get("map")
if ctx["map"] == "undefined":
Expand All @@ -685,7 +678,6 @@ def export_pdf(scope, imprt):
ctx["url"] = "/".join(url_list)

ctx["statistics_formated"] = {}

for label_dict in ctx["destination"]["statistics_labels"]:
key = label_dict["value"]
if label_dict["key"] in ctx["statistics"]:
Expand Down
Loading
Loading