Commit 647c2bba authored by 段英荣's avatar 段英荣

modify

parent 87eca9f5
......@@ -16,6 +16,8 @@
"pick_id_list":{"type":"long"},
"offline_score":{"type":"double"},//离线算分
"create_time":{"type":"date", "format":"date_time_no_millis"},
"update_time":{"type":"date", "format":"date_time_no_millis"}
"update_time":{"type":"date", "format":"date_time_no_millis"},
"create_time_val":{"type":"long"},
"update_time_val":{"type":"long"}
}
}
\ No newline at end of file
......@@ -5,6 +5,8 @@ import sys
import logging
import traceback
from libs.tools import tzlc
import time
class TopicTransfer(object):
......@@ -31,15 +33,14 @@ class TopicTransfer(object):
create_time = instance.create_time
tzlc_create_time = tzlc(create_time)
import time
print("duan add,type:%s,val:%d,dir:%s" % (type(tzlc_create_time),time.mktime(tzlc_create_time.timetuple()),dir(tzlc_create_time)))
res["create_time"] = tzlc(create_time)
res["create_time"] = tzlc_create_time
res["create_time_val"] = time.mktime(tzlc_create_time.timetuple())
update_time = instance.update_time
res["update_time"] = tzlc(update_time)
tzlc_update_time = tzlc(update_time)
res["update_time"] = tzlc_update_time
res["update_time_val"] = time.mktime(tzlc_update_time.timetuple())
return res
except:
......
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