Commit 0aa95012 authored by Administrator's avatar Administrator

[FEATURE] FILEPARSER adding condition for title size.

parent cf3697da
......@@ -103,6 +103,10 @@ class FileParser:
# if parentNode.descendants().filter(resource=resource).exists():
# return None
# create the document itself
if len(title) > 200:
title = title[:200]
childNode = Node(
user = parentNode.user,
type = self._document_nodetype,
......@@ -189,4 +193,4 @@ class FileParser:
def format_metadata(self, metadata):
"""Format the metadata."""
metadata = self.format_metadata_dates(metadata)
return metadata
\ No newline at end of file
return metadata
Markdown is supported
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