Commit 9dfc0de3 authored by Merlijn Wajer's avatar Merlijn Wajer
Browse files

doc: helloworld: update example for files metadata

parent 3ecb6aa5
......@@ -16,7 +16,9 @@ and then gzips the content.
from derivermodule.logger import get_logger
from derivermodule.task import get_task_info
from derivermodule.metadata import load_item_metadata, write_item_metadata
from derivermodule.files import canonical_item_filename
from derivermodule.metadata import load_item_metadata, \
write_item_metadata, write_files_metadata
from derivermodule.const import PB_TMP, PB_ITEM
from version import VERSION
......@@ -71,6 +73,7 @@ and then gzips the content.
# Write changes, if any.
write_item_metadata(identifier, metadata)
# TODO: Write module version to targetFile file metadata
file_md = {'hocr_char_to_word_module_version': VERSION}
write_files_metadata({canonical_item_filename(target_file): file_md})
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment