Commit 5d237e6d authored by lixiaofang's avatar lixiaofang

topic_model

parent 18ede0b1
...@@ -66,19 +66,18 @@ def get_pictorial_tag_by_id(self): ...@@ -66,19 +66,18 @@ def get_pictorial_tag_by_id(self):
logging.error("catch exception,err_msg:%s" % traceback.format_exc()) logging.error("catch exception,err_msg:%s" % traceback.format_exc())
return [] return []
# def get_topic_data(numtime, numitme2):
def get_topic_data(numtime, numitme2): # try:
try: #
# result_topic = Topic.objects.filter(create_time__lte=numitme2, create_time__gte=numtime,
result_topic = Topic.objects.filter(create_time__lte=numitme2, create_time__gte=numtime, # is_online=True).values("user_id", "id")
is_online=True).values("user_id", "id") #
# if len(result_topic) > 0:
if len(result_topic) > 0: # for i in result_topic:
for i in result_topic: # shadow_judge = UserExtra.objects.filter(user_id=i[0], is_online=Topic, is_deleted=False).values_list(
shadow_judge = UserExtra.objects.filter(user_id=i[0], is_online=Topic, is_deleted=False).values_list( # "is_shadow", flat=True)
"is_shadow", flat=True) #
# return shadow_judge
return has_edit # except:
except: # logging.error("catch exception,err_msg:%s" % traceback.format_exc())
logging.error("catch exception,err_msg:%s" % traceback.format_exc()) # return []
return []
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment