From b31618eb6a5178c52b28bcbc00ed75c2de2833eb Mon Sep 17 00:00:00 2001 From: Terrtia Date: Fri, 9 Nov 2018 15:26:26 +0100 Subject: [PATCH] chg: [Mixer] config default feeder name #291 --- bin/Mixer.py | 3 ++- bin/packages/config.cfg.sample | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/Mixer.py b/bin/Mixer.py index e1656b8e..e7f9e6de 100755 --- a/bin/Mixer.py +++ b/bin/Mixer.py @@ -80,6 +80,7 @@ if __name__ == '__main__': # OTHER CONFIG # operation_mode = cfg.getint("Module_Mixer", "operation_mode") ttl_key = cfg.getint("Module_Mixer", "ttl_duplicate") + default_unnamed_feed_name = cfg.get("Module_Mixer", "default_unnamed_feed_name") # STATS # processed_paste = 0 @@ -106,7 +107,7 @@ if __name__ == '__main__': paste_name = complete_paste except ValueError as e: - feeder_name = "unnamed_feeder" + feeder_name = default_unnamed_feed_name paste_name = complete_paste # Processed paste diff --git a/bin/packages/config.cfg.sample b/bin/packages/config.cfg.sample index 97cd692a..6efb4be4 100644 --- a/bin/packages/config.cfg.sample +++ b/bin/packages/config.cfg.sample @@ -99,6 +99,7 @@ threshold_stucked_module=600 operation_mode = 3 #Define the time that a paste will be considerate duplicate. in seconds (1day = 86400) ttl_duplicate = 86400 +default_unnamed_feed_name = unnamed_feeder [RegexForTermsFrequency] max_execution_time = 60