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

modify

parent c3937355
......@@ -37,7 +37,7 @@ class User(models.Model):
def get_is_recommend_flag(self):
is_shadow = False
is_recommend = False
query_sql = UserExtra.objects.filter(user_id=self.user_id)
query_sql = UserExtra.objects.filter(user_id=self.user_id,is_deleted=False,is_online=True)
for record in query_sql:
is_recommend = record.is_recommend
is_shadow = record.is_shadow
......
......@@ -29,14 +29,16 @@ class UserTransfer(object):
res["is_recommend"] = is_recommend
res["is_shadow"] = is_shadow
except:
#logging.error("duan test,catch exception,err_msg:%s" % traceback.format_exc())
logging.error("duan test,catch exception,err_msg:%s" % traceback.format_exc())
res["is_recommend"] = False
res["is_shadow"] = False
try:
latest_topic_time_val = instance.get_latest_topic_time_val()
res["latest_topic_time_val"] = latest_topic_time_val
#latest_topic_time_val = instance.get_latest_topic_time_val()
#res["latest_topic_time_val"] = latest_topic_time_val
res["latest_topic_time_val"] = -1
except:
logging.error("duan test,catch exception,err_msg:%s" % traceback.format_exc())
res["latest_topic_time_val"] = -1
tzlc_create_time = tzlc(instance.create_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