summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2016-03-28 11:22:04 +0200
committerFlorian Pritz <bluewind@xinu.at>2016-03-28 11:22:04 +0200
commite159a2e981d2629fa145ab584e8c3853b097d180 (patch)
tree83d5ac1bff5c987d1c5165d29a7b8c97f7a2afe4
parent0d2141c825b78d94212730d004b79c014cab3240 (diff)
Remove unecessary list comprehension
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rwxr-xr-xfb.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fb.py b/fb.py
index 2a04de4..418d047 100755
--- a/fb.py
+++ b/fb.py
@@ -138,7 +138,7 @@ class CURLWrapper:
ret = self.send_post_progress("/file/upload", [])
rets["ids"] += ret["ids"]
rets["urls"] += ret["urls"]
- for new_id, new_url, existing in zip(ret["ids"], ret["urls"], [a for a in files if a.should_upload()]):
+ for new_id, new_url, existing in zip(ret["ids"], ret["urls"], chunk):
existing.id = new_id
existing.url = new_url