Commit 0aa95012 authored by Administrator's avatar Administrator

[FEATURE] FILEPARSER adding condition for title size.

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