fixed uploader
This commit is contained in:
parent
88e6f8be48
commit
ad8c293af1
|
|
@ -20,7 +20,7 @@ class FileUploaderService:
|
||||||
async def upload_from_chain(self, chain: Chain):
|
async def upload_from_chain(self, chain: Chain):
|
||||||
files_to_upload = list()
|
files_to_upload = list()
|
||||||
|
|
||||||
for action in chain.actions:
|
for action in filter(lambda a: a.action_type == "comment", chain.actions):
|
||||||
file_urls_to_upload = [*files_to_upload, *action.file_urls]
|
file_urls_to_upload = [*files_to_upload, *action.file_urls]
|
||||||
|
|
||||||
for file_url in file_urls_to_upload:
|
for file_url in file_urls_to_upload:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user