summaryrefslogtreecommitdiff
path: root/s2-pdf-report.py
diff options
context:
space:
mode:
Diffstat (limited to 's2-pdf-report.py')
-rw-r--r--s2-pdf-report.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/s2-pdf-report.py b/s2-pdf-report.py
index 0748897f..c47579a6 100644
--- a/s2-pdf-report.py
+++ b/s2-pdf-report.py
@@ -22,9 +22,10 @@ def s2_pdf_report():
addresses = AddressBook()
for fn in glob.iglob('{}/**/*.txt'.format(PDF_DIR), recursive=True):
paper_id = fn.replace(PDF_DIR, '').split('/')[2]
+ paper = load_paper(paper_id)
total_count += 1
# print(paper_id)
- headings, found_abstract = read_headings(fn)
+ headings, found_abstract = read_headings(fn, paper)
heading_string = '\n'.join(headings[0:20])
found_addresses = []
if not found_abstract: