mirror of
https://github.com/wassname/stampy-chat.git
synced 2026-10-05 13:20:40 +08:00
commented change in authors' type from str to list
This commit is contained in:
1 parent
9b8c470438
commit
8044111a1b
1 file changed
+3
-2
@@ -65,8 +65,8 @@ class ChunkedARD:
|
||||
'title': str,
|
||||
'url': str,
|
||||
'date_published': str,
|
||||
'authors': list, # It appears to be a list, but actually it's a list-looking string. Like "['apple', 'orange', 'tomato']" is a string.
|
||||
# 'summary': str # see previous comment
|
||||
'authors': list, # unsure as of yet if this is a string or a list. TODO it is subject to change
|
||||
# 'summary': list # see previous comment
|
||||
}
|
||||
required_metadata_keys = ['id', 'source', 'title', 'text']
|
||||
|
||||
@@ -115,6 +115,7 @@ class ChunkedARD:
|
||||
url: str = entry['url']
|
||||
date_published: str = entry['date_published']
|
||||
authors: list = entry['authors']
|
||||
# summary is ignored for now, since most sources lack one. TODO: add summary. see self.metadata code as well.
|
||||
|
||||
# Get signature
|
||||
if authors:
|
||||
|
||||
Reference in new issue
Block a user