We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f2be97 commit 911401cCopy full SHA for 911401c
app.py
@@ -59,8 +59,11 @@ def render_template(template, dataset):
59
if template == "view.html":
60
kwargs["title"] = f"{kwargs['title']} - AIFARMS Data Portal"
61
if isinstance(kwargs.get("contact"), str):
62
- name, email = kwargs["contact"].split("<")
63
- kwargs["contact"] = {"name": name.strip(), "email": email.strip(" >")}
+ if "<" in kwargs["contact"]:
+ name, email = kwargs["contact"].split("<")
64
+ kwargs["contact"] = {"name": name.strip(), "email": email.strip(" >")}
65
+ else:
66
+ kwargs["contact"] = {"name": kwargs["contact"].strip(), "email": ""}
67
68
zipfile = f"{DATASETS}/{data[dataset]['uuid']}.zip"
69
if os.path.exists(zipfile):
0 commit comments