You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2020/02/10 22:44:55 UTC

[allura] 24/41: [#8349] clearer code

This is an automated email from the ASF dual-hosted git repository.

brondsem pushed a commit to branch db/8349
in repository https://gitbox.apache.org/repos/asf/allura.git

commit 8e38a3bc5ad117bba8ed7bd4c6bbb8d0b04ebaca
Author: Dave Brondsema <da...@brondsema.net>
AuthorDate: Mon Feb 10 14:43:16 2020 -0500

    [#8349] clearer code
---
 Allura/allura/model/discuss.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Allura/allura/model/discuss.py b/Allura/allura/model/discuss.py
index 41d2c6d..3331dc7 100644
--- a/Allura/allura/model/discuss.py
+++ b/Allura/allura/model/discuss.py
@@ -625,7 +625,8 @@ class Post(Message, VersionedArtifact, ActivityObject, ReactableArtifact):
 
     def add_multiple_attachments(self, file_info):
         if isinstance(file_info, list):
-            list(map(self.add_attachment, file_info))
+            for fi in file_info:
+                self.add_attachment(fi)
         else:
             self.add_attachment(file_info)