From b6da0634732db6449fef041ebbcd293b4a604924 Mon Sep 17 00:00:00 2001 From: Terrtia Date: Fri, 2 Apr 2021 16:43:13 +0200 Subject: [PATCH] fix: [redis cache] remove old paste_name db --- bin/ModuleStats.py | 8 ++------ bin/Web.py | 7 ------- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/bin/ModuleStats.py b/bin/ModuleStats.py index fa1c754c..49992166 100755 --- a/bin/ModuleStats.py +++ b/bin/ModuleStats.py @@ -6,7 +6,7 @@ """ ################################## -# Import External packages +# Import External packages # ################################## import time import datetime @@ -15,7 +15,7 @@ import os ################################## -# Import Project packages +# Import Project packages # ################################## from module.abstract_module import AbstractModule from packages.Date import Date @@ -47,9 +47,6 @@ class ModuleStats(AbstractModule): # REDIS # self.r_serv_trend = ConfigLoader.ConfigLoader().get_redis_conn("ARDB_Trending") - self.r_serv_pasteName = ConfigLoader.ConfigLoader().get_redis_conn("Redis_Paste_Name") - - def compute(self, message): if len(message.split(';')) > 1: @@ -112,7 +109,6 @@ class ModuleStats(AbstractModule): redis_providers_name_set = 'providers_set_' + paste_date # Add/Update in Redis - self.r_serv_pasteName.sadd(paste_baseName, message) self.r_serv_trend.sadd(redis_all_provider, paste_provider) num_paste = int(self.r_serv_trend.hincrby(paste_provider+'_num', paste_date, 1)) diff --git a/bin/Web.py b/bin/Web.py index 9c362580..b544d011 100755 --- a/bin/Web.py +++ b/bin/Web.py @@ -64,10 +64,6 @@ class Web(AbstractModule): self.cc_critical = self.process.config.get("Url", "cc_critical") # FUNCTIONS # - self.redis_logger.info("Script URL subscribed to channel web_categ") - - # FIXME For retro compatibility - self.channel = 'web_categ' self.faup = Faup() @@ -177,9 +173,6 @@ class Web(AbstractModule): domains_list) if A_values[0] >= 1: - PST.__setattr__(self.channel, A_values) - PST.save_attribute_redis(self.channel, (A_values[0], - list(A_values[1]))) pprint.pprint(A_values) # self.redis_logger.info('Url;{};{};{};Checked {} URL;{}'.format(