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 2021/09/28 13:13:59 UTC

[incubator-ponymail-foal] branch master updated: Don't bypass plugin functions

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-foal.git


The following commit(s) were added to refs/heads/master by this push:
     new 4a483ab  Don't bypass plugin functions
4a483ab is described below

commit 4a483ab85549aec83f48ed76a71383a4fbc59b66
Author: Sebb <se...@apache.org>
AuthorDate: Tue Sep 28 14:13:45 2021 +0100

    Don't bypass plugin functions
---
 tools/archiver.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/archiver.py b/tools/archiver.py
index 0858381..1783d0e 100755
--- a/tools/archiver.py
+++ b/tools/archiver.py
@@ -263,7 +263,7 @@ def get_parent_identifiers(ojson):
 
 
 def get_by_message_id(elastic, msgid, timeout="5s"):
-    data = elastic.es.search(index=elastic.db_mbox, body={
+    data = elastic.search(index=elastic.db_mbox, body={
         "query": {
             "bool": {
                 "must": {"term": {"message-id": msgid}}
@@ -292,7 +292,7 @@ def get_parent_info(elastic, ojson, timeout=5, limit=10):
 def get_previous_mid(elastic, ojson, timeout="5s"):
     forum = ojson["forum"]
     latest = ojson.get("epoch", 1) - 1
-    data = elastic.es.search(index=elastic.db_mbox, body={
+    data = elastic.search(index=elastic.db_mbox, body={
         "query": {
             "bool": {
                 "must": [