Fix citation check for new citation semantics
This commit is contained in:
parent
87df1b7480
commit
cd0e3d895b
11
src/build.py
11
src/build.py
|
@ -400,11 +400,10 @@ def build_all(path_prefix, lexicon_name):
|
||||||
|
|
||||||
# Check that authors aren't citing themselves
|
# Check that authors aren't citing themselves
|
||||||
print("Running citation checks...")
|
print("Running citation checks...")
|
||||||
article_by_title = {article.title : article for article in articles}
|
for parent in articles:
|
||||||
#for article in articles:
|
for article in [parent] + parent.addendums:
|
||||||
# for _, tup in article.citations.items():
|
for citation in article.citations:
|
||||||
# cited = article_by_title[tup[1]]
|
if article.player == citation.article.player:
|
||||||
# if article.player == cited.player:
|
print(" {2}: {0} cites {1}".format(article.title, citation.target, article.player))
|
||||||
# print(" {2}: {0} cites {1}".format(article.title, cited.title, cited.player))
|
|
||||||
|
|
||||||
print()
|
print()
|
||||||
|
|
Loading…
Reference in New Issue