Skip to content

Commit fb0dbbf

Browse files
committed
Fixes order in Identifier
1 parent cf1e9a8 commit fb0dbbf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mwcites/extract_cites.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def process_page(page, extractors):
8787

8888
for id in ids: #For the ids in the last version of the page
8989
rev_id, timestamp = appearances[id]
90-
yield (page.id, page.title, rev_id, timestamp, id[0], id[1])
90+
yield (page.id, page.title, rev_id, timestamp, id.type, id.id)
9191

9292
def extract_ids(text, extractors):
9393
for extractor in extractors:

mwcites/identifier.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
from collections import namedtuple
22

3-
Identifier = namedtuple("Identifier", ['id', 'type'])
3+
Identifier = namedtuple("Identifier", ['type', 'id'])

0 commit comments

Comments
 (0)