fix: [regex_helper]

This commit is contained in:
Terrtia 2020-06-26 15:44:07 +02:00
parent ccb957e6d9
commit 9ce2eb1e79
No known key found for this signature in database
GPG key ID: 1E1B1F50D84613D0

View file

@ -76,7 +76,6 @@ def regex_findall(module_name, redis_key, regex, item_id, item_content, max_time
def _regex_search(redis_key, regex, item_content): def _regex_search(redis_key, regex, item_content):
first_occ = regex.search(item_content) first_occ = regex.search(item_content)
if r_set:
r_serv_cache.set(redis_key, first_occ) r_serv_cache.set(redis_key, first_occ)
def regex_search(module_name, redis_key, regex, item_id, item_content, max_time=30): def regex_search(module_name, redis_key, regex, item_id, item_content, max_time=30):