From 73e694d3739dc586ada2d844142475052f5f493a Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Mon, 25 Sep 2023 14:55:08 +0100 Subject: [PATCH] Show wikidata description on github report --- main.py | 4 ++-- templates/github.html | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/main.py b/main.py index 0f7a1ad..f888e74 100755 --- a/main.py +++ b/main.py @@ -452,11 +452,11 @@ def github_wikidata() -> str: """Look for speakers on Wikidata based on the GitHub property.""" items = [] for line in open("found_wikidata_github"): - person_id, person_name, qid, wd_name, github, photo = eval(line) + person_id, person_name, qid, wd_name, github, desc = eval(line) person = model.Person.query.get(person_id) if person.wikidata_qid: continue - items.append((person, qid, wd_name, photo)) + items.append((person, qid, wd_name, desc)) items.sort(key=lambda i: len(i[0].name)) diff --git a/templates/github.html b/templates/github.html index 58a92e0..29e6e78 100644 --- a/templates/github.html +++ b/templates/github.html @@ -6,12 +6,13 @@

Conference archive

{{ items | count }} matches found

- {% for person, qid, wd_name, photo in items %} + {% for person, qid, wd_name, desc in items %}
{{ person.name }} ## {{ wd_name }} ({{ qid }}) - {% if photo %}📷{% endif %} + ## + {{ desc }}
{% endfor %}