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

modify

parent 88d4e16b
......@@ -35,14 +35,14 @@ class User(models.Model):
is_shadow = False
is_recommend = False
query_sql = UserExtra.objects.filter(user_id__exact=user_id)
query_sql = UserExtra.objects.filter(user_id__in=[user_id])
for record in query_sql:
is_recommend = record.is_recommend
is_shadow = record.is_shadow
# 获取该用户最新发帖时间
latest_topic_time_val = -1
topic_records = Topic.objects.filter(user_id__exact=user_id).order_by(update_time)
topic_records = Topic.objects.filter(user_id__in=[user_id]).order_by(update_time)
check_index = 0
for record in topic_records:
topic_update_time = record.update_time
......
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