Commit dfc6e360 authored by 段英荣's avatar 段英荣

modify

parent bd015e35
......@@ -45,6 +45,7 @@ class User(models.Model):
# 获取该用户最新发帖时间
latest_topic_time_val = -1
"""
topic_records = Topic.objects.filter(user_id=user_id).order_by(update_time)
check_index = 0
for record in topic_records:
......@@ -53,7 +54,9 @@ class User(models.Model):
latest_topic_time_val = int(time.mktime(tzlc_topic_update_time.timetuple()))
check_index += 1
if check_index >= 1:
break
break
"""
def get_follow_user_id_list(self):
follow_user_id_list = list()
......
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