Commit 2c56499c authored by 段英荣's avatar 段英荣

modify

parent b7f09802
...@@ -49,7 +49,7 @@ class UserTransfer(object): ...@@ -49,7 +49,7 @@ class UserTransfer(object):
res["is_recommend"] = is_recommend res["is_recommend"] = is_recommend
res["is_shadow"] = is_shadow res["is_shadow"] = is_shadow
except: except:
logging.error("duan test,catch exception,err_msg:%s" % traceback.format_exc()) logging.error("catch exception,err_msg:%s" % traceback.format_exc())
res["is_recommend"] = False res["is_recommend"] = False
res["is_shadow"] = False res["is_shadow"] = False
...@@ -57,30 +57,25 @@ class UserTransfer(object): ...@@ -57,30 +57,25 @@ class UserTransfer(object):
latest_topic_time_val = instance.get_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"] = latest_topic_time_val
except: except:
logging.error("duan test,catch exception,err_msg:%s" % traceback.format_exc()) logging.error("catch exception,err_msg:%s" % traceback.format_exc())
res["latest_topic_time_val"] = -1 res["latest_topic_time_val"] = -1
try: tzlc_create_time = tzlc(instance.create_time)
tzlc_create_time = tzlc(instance.create_time) res["create_time"] = tzlc_create_time
res["create_time"] = tzlc_create_time res["create_time_val"] = int(time.mktime(tzlc_create_time.timetuple()))
res["create_time_val"] = int(time.mktime(tzlc_create_time.timetuple()))
tzlc_update_time = tzlc(instance.update_time) tzlc_update_time = tzlc(instance.update_time)
res["update_time"] = tzlc_update_time res["update_time"] = tzlc_update_time
res["update_time_val"] = int(time.mktime(tzlc_update_time.timetuple())) res["update_time_val"] = int(time.mktime(tzlc_update_time.timetuple()))
res["tag_list"] = [] try:
res["attention_user_id_list"] = [] res["tag_list"] = instance.get_user_tag_id_list()
res["attention_group_id_list"] = [] res["attention_user_id_list"] = cls.get_follow_user_id_list(userInstance=instance)
res["pick_user_id_list"] = [] res["attention_group_id_list"] = instance.get_attention_group_id_list()
res["same_group_user_id_list"] = [] res["pick_user_id_list"] = instance.get_pick_user_id_list()
# res["tag_list"] = instance.get_user_tag_id_list() res["same_group_user_id_list"] = instance.get_same_group_user_id_list()
# res["attention_user_id_list"] = cls.get_follow_user_id_list(userInstance=instance)
# res["attention_group_id_list"] = instance.get_attention_group_id_list()
# res["pick_user_id_list"] = instance.get_pick_user_id_list()
# res["same_group_user_id_list"] = instance.get_same_group_user_id_list()
except: except:
logging.error("duan test,catch exception,err_msg:%s" % traceback.format_exc()) logging.error("catch exception,err_msg:%s" % traceback.format_exc())
res["tag_list"] = [] res["tag_list"] = []
res["attention_user_id_list"] = [] res["attention_user_id_list"] = []
res["attention_group_id_list"] = [] res["attention_group_id_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