Read schedules from current dir.
This commit is contained in:
parent
325a90cd6c
commit
2f1522cc23
1 changed files with 3 additions and 4 deletions
|
|
@ -8,8 +8,9 @@ import lxml.etree
|
||||||
|
|
||||||
from confarchive import database, model
|
from confarchive import database, model
|
||||||
|
|
||||||
|
|
||||||
DB_URL = "postgresql:///confarchive"
|
DB_URL = "postgresql:///confarchive"
|
||||||
schedules_loc = "/home/edward/src/2022/conference-gender-mix/schedules"
|
schedules_loc = "schedules"
|
||||||
|
|
||||||
database.init_db(DB_URL)
|
database.init_db(DB_URL)
|
||||||
|
|
||||||
|
|
@ -112,7 +113,7 @@ def build_event_object(
|
||||||
seen_person = set()
|
seen_person = set()
|
||||||
print("persons:", len(persons))
|
print("persons:", len(persons))
|
||||||
for p in persons:
|
for p in persons:
|
||||||
name = p.text
|
name = p.text.strip()
|
||||||
print("peron:", name)
|
print("peron:", name)
|
||||||
if name is None:
|
if name is None:
|
||||||
print("no name")
|
print("no name")
|
||||||
|
|
@ -269,7 +270,5 @@ for f in os.scandir(schedules_loc):
|
||||||
continue
|
continue
|
||||||
if f.name in {"datenspuren_2019"}:
|
if f.name in {"datenspuren_2019"}:
|
||||||
continue
|
continue
|
||||||
if not f.name.startswith("capitole_du_libre"):
|
|
||||||
continue
|
|
||||||
print(f.name)
|
print(f.name)
|
||||||
load(f.path, f.name)
|
load(f.path, f.name)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue