Shuffle fix 3
This commit is contained in:
@@ -19,7 +19,8 @@ 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
|
||||
# To list, shuffle
|
||||
list_search_obj = list(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]))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user