diff --git a/paper_atlas/ingestion/joint_editions.py b/paper_atlas/ingestion/joint_editions.py index ff44857..c09fa24 100644 --- a/paper_atlas/ingestion/joint_editions.py +++ b/paper_atlas/ingestion/joint_editions.py @@ -62,7 +62,7 @@ def inspect(c): WHERE v.acronym IN ('IJCAI','ECAI+IJCAI') AND e.year=? AND e.track='main' ''', (year,)).fetchall() if len(rows) != 1: raise ValueError('Expected one existing edition per year; missing or colliding editions require separate review') - edition, venue, acronym = rows[0] + edition, venue, acronym = (rows[0][i] for i in range(3)) count = c.execute('SELECT count(*) FROM submissions WHERE edition_id=?', (edition,)).fetchone()[0] if not 0 < count <= 5000: raise ValueError('Existing edition must have a nonempty bounded submission scope') @@ -73,7 +73,8 @@ def inspect(c): JOIN source_records r ON r.id=ss.source_record_id JOIN sources src ON src.id=r.source_id WHERE s.edition_id=? AND src.name='dblp' ORDER BY s.id,r.id''', (edition,)).fetchall() seen = set() - for sid, external, metadata in evidence: + for row in evidence: + sid, external, metadata = (row[i] for i in range(3)) meta = json.loads(metadata) bibliography = meta.get('bibliography') or {} if (meta.get('snapshot_sha256') != XML_SHA