You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by hu...@apache.org on 2020/09/11 08:39:48 UTC

[incubator-ponymail-foal] 02/03: use new constructor class for thread building

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

humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git

commit 9979a9d992a549671d563b20d7ab53d78c35e16d
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Fri Sep 11 10:39:15 2020 +0200

    use new constructor class for thread building
---
 server/endpoints/stats.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/server/endpoints/stats.py b/server/endpoints/stats.py
index 8ac7a02..ed328fd 100644
--- a/server/endpoints/stats.py
+++ b/server/endpoints/stats.py
@@ -53,7 +53,8 @@ async def process(
         wordcloud = await plugins.mbox.wordcloud(session, query_defuzzed)
     first_year, last_year = await plugins.mbox.get_years(session, query_defuzzed_nodate)
 
-    tstruct, authors = await server.runners.run(plugins.mbox.construct_threads, results)
+    threads = plugins.mbox.ThreadConstructor(results)
+    tstruct, authors = await server.runners.run(threads.construct)
     xlist = indata.get("list", "*")
     xdomain = indata.get("domain", "*")