Shuffle fix 2
This commit is contained in:
@@ -20,9 +20,9 @@ class FetchSearcher():
|
||||
# Get search objects of interest
|
||||
list_search_obj = Search.objects.filter(Q(type=Search.TYPE_ENUM.URL_HOST) | Q(type=Search.TYPE_ENUM.KEYWORD_SEARCH))
|
||||
# Shuffle
|
||||
list_search_obj = random.shuffle(list_search_obj)
|
||||
random.shuffle(list_search_obj)
|
||||
logger.debug("Fetching from search: {}".format(["{} ({})".format(e.search, e.type) for e in list_search_obj]))
|
||||
|
||||
|
||||
# Search
|
||||
for obj_search in list_search_obj:
|
||||
# TODO: language & country customization
|
||||
|
||||
Reference in New Issue
Block a user