Improve web finalisation navigation, caching and Anot support
This commit is contained in:
1 parent
5de70dbc0d
commit
b069805988
21 files changed
+339
-58
No files matched your search
@@ -29,10 +29,11 @@ class ReviewedReadCache(AnnotationReadCache):
|
||||
shared = [root / 'labels']
|
||||
for folder in ('Text2', 'Sol2'):
|
||||
shared.extend((root / folder).glob('*.pdf'))
|
||||
common = (_files_digest(shared), configuration.LATEX_ANOT_BEFORE, configuration.LATEX_ANOT_AFTER)
|
||||
common = (_files_digest(shared), getattr(configuration.LATEX_ANOT_BEFORE, "template", configuration.LATEX_ANOT_BEFORE),
|
||||
configuration.LATEX_ANOT_AFTER)
|
||||
remarks, general = load_remarks(root), general_remarks.load_remarks(root)
|
||||
applied = root / mode / APPLIED
|
||||
instructions = read_instructions(applied.read_text(), mode) if applied.is_file() else []
|
||||
instructions = read_instructions(applied.read_text(), mode) if applied.is_file() and mode != "Anot" else []
|
||||
for directory in directories:
|
||||
cid = directory.name[5:]
|
||||
saved = read_json(directory / FILENAME)
|
||||
|
||||
Reference in new issue
Block a user