mirror of
https://github.com/Kunsi/scheduled-plugin-pretalx-broadcast-tools.git
synced 2024-11-22 01:51:03 +00:00
service: ignore speakers with no name
This commit is contained in:
parent
f9ee34ea5c
commit
69aa2deee2
1 changed files with 3 additions and 1 deletions
4
service
4
service
|
@ -185,7 +185,9 @@ def main():
|
||||||
|
|
||||||
persons = []
|
persons = []
|
||||||
for p in talk["persons"]:
|
for p in talk["persons"]:
|
||||||
persons.append(p.get("public_name", p["name"]))
|
name = p.get("public_name", p.get("name"))
|
||||||
|
if name:
|
||||||
|
persons.append(name)
|
||||||
talk["persons"] = persons
|
talk["persons"] = persons
|
||||||
|
|
||||||
schedule["talks"].append(talk)
|
schedule["talks"].append(talk)
|
||||||
|
|
Loading…
Reference in a new issue