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 2022/01/31 00:34:50 UTC

[incubator-ponymail-foal] 01/02: source property 'permalinks' is never used

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

commit 96e4eaabba0c72fe0823182bc252c661e74c0ea0
Author: Sebb <se...@apache.org>
AuthorDate: Sun Jan 30 13:18:39 2022 +0000

     source property 'permalinks' is never used
    
     This fixes #225
---
 tools/migrate.py | 1 -
 1 file changed, 1 deletion(-)

diff --git a/tools/migrate.py b/tools/migrate.py
index fb62f6b..1530169 100644
--- a/tools/migrate.py
+++ b/tools/migrate.py
@@ -194,7 +194,6 @@ def process_document(old_es, doc, old_dbname, dbname_source, dbname_mbox, do_dki
     else:
         doc["_source"]["permalinks"] = [doc["_id"]]
 
-    source["_source"]["permalinks"] = doc["_source"]["permalinks"]
     doc["_source"]["dbid"] = hashlib.sha3_256(source_text).hexdigest()
 
     # Add in shortened body for search aggs