Show wikidata description on github report
This commit is contained in:
parent
22067b97e7
commit
73e694d373
4
main.py
4
main.py
|
@ -452,11 +452,11 @@ def github_wikidata() -> str:
|
||||||
"""Look for speakers on Wikidata based on the GitHub property."""
|
"""Look for speakers on Wikidata based on the GitHub property."""
|
||||||
items = []
|
items = []
|
||||||
for line in open("found_wikidata_github"):
|
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)
|
person = model.Person.query.get(person_id)
|
||||||
if person.wikidata_qid:
|
if person.wikidata_qid:
|
||||||
continue
|
continue
|
||||||
items.append((person, qid, wd_name, photo))
|
items.append((person, qid, wd_name, desc))
|
||||||
|
|
||||||
items.sort(key=lambda i: len(i[0].name))
|
items.sort(key=lambda i: len(i[0].name))
|
||||||
|
|
||||||
|
|
|
@ -6,12 +6,13 @@
|
||||||
<h1>Conference archive</h1>
|
<h1>Conference archive</h1>
|
||||||
|
|
||||||
<p>{{ items | count }} matches found</p>
|
<p>{{ items | count }} matches found</p>
|
||||||
{% for person, qid, wd_name, photo in items %}
|
{% for person, qid, wd_name, desc in items %}
|
||||||
<div>
|
<div>
|
||||||
<a href="{{ url_for("person", person_id=person.id) }}">{{ person.name }}</a>
|
<a href="{{ url_for("person", person_id=person.id) }}">{{ person.name }}</a>
|
||||||
##
|
##
|
||||||
<a href="https://www.wikidata.org/wiki/{{ qid }}">{{ wd_name }} ({{ qid }})</a>
|
<a href="https://www.wikidata.org/wiki/{{ qid }}">{{ wd_name }} ({{ qid }})</a>
|
||||||
{% if photo %}📷{% endif %}
|
##
|
||||||
|
{{ desc }}
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue