Fix citation check for new citation semantics

This commit is contained in:
Tim Van Baak 2018-11-03 14:53:37 -07:00
parent 87df1b7480
commit cd0e3d895b
1 changed files with 5 additions and 6 deletions

View File

@ -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()