Commit 56ec950d authored by 段英荣's avatar 段英荣

Merge branch 'topic_update_time' into 'master'

update_time

See merge request alpha/physical!421
parents 32ce60d1 978b0c8e
......@@ -7,7 +7,7 @@ import traceback
import logging
from libs.es import ESPerform
from trans2es.type_info import get_type_info_map, TypeInfo
from vest.reply import true_comment_one, true_comment_two, true_comment_three,one_seven_topic_comment
from vest.reply import true_comment_one, true_comment_two, true_comment_three, one_seven_topic_comment
from vest.click import true_click_five, true_click_two, true_click_four, true_click_one, true_click_three, \
one_seven_star_topic
from vest.follow import auto_follow, auto_follow_new
......@@ -143,6 +143,5 @@ class Command(BaseCommand):
if options["mvest"] == "principal_online_comment1":
principal_online_comment1.principal_online_comment1()
except:
logging.error("catch exception,err_msg:%s" % traceback.format_exc())
......@@ -39,7 +39,7 @@ def get_data(numtime1, numtime2):
numtime1, numtime2))
data = cursor.fetchall()
cursor.execute(
"SELECT pictorial_id FROM topic_vote_cnt WHERE is_deleted = 0 and (create_time >= '%s' and create_time < '%s') group by pictorial_id" % (
"SELECT pictorial_id FROM topic_vote_cnt WHERE is_deleted = 0 and (update_time >= '%s' and update_time < '%s') group by pictorial_id" % (
numtime1, numtime2))
data_vote = cursor.fetchall()
......
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