diff --git a/search/views/topic.py b/search/views/topic.py index c3e0db2a580301ec57d7061e81bafa3a274814fe..ff5200c8e7642b85f14ad0ff827c87152a3bec23 100644 --- a/search/views/topic.py +++ b/search/views/topic.py @@ -177,6 +177,11 @@ def query_topic_by_tag_aggregation(user_id,tag_id, offset, size): :return: """ try: + if not user_id: + user_id = -1 + if not tag_id: + tag_id = -1 + result_list = TopicUtils.get_tag_aggregation_topic_id_list(user_id,tag_id,offset,size) recommend_topic_ids_list = list() if len(result_list)>0: