You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by se...@apache.org on 2019/10/31 11:38:38 UTC
[incubator-ponymail] branch master updated: Safer to use inequality
This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail.git
The following commit(s) were added to refs/heads/master by this push:
new 08b5557 Safer to use inequality
08b5557 is described below
commit 08b55576f057f62e3110d9958164f2f1be494d23
Author: Sebb <se...@apache.org>
AuthorDate: Thu Oct 31 11:38:18 2019 +0000
Safer to use inequality
---
tools/edit-list.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/edit-list.py b/tools/edit-list.py
index 993644d..770ff6f 100755
--- a/tools/edit-list.py
+++ b/tools/edit-list.py
@@ -224,11 +224,11 @@ def main():
# Handle proposed changes in batches of 500
while len(proposed_changes) > 0:
tmp.append(proposed_changes.pop(0))
- if len(tmp) == 500:
+ if len(tmp) >= 500:
if not args.dryrun:
es.bulk(tmp)
+ processed += len(tmp)
tmp = []
- processed += 500
print("Processed %u documents..." % processed)
# Any stragglers remaining gets processed here
if len(tmp) > 0: