Commit 6b06e2d3 authored by lixiaofang's avatar lixiaofang

add

parent 61d50ba5
...@@ -4,7 +4,7 @@ import random ...@@ -4,7 +4,7 @@ import random
import traceback import traceback
from log_settings import * from log_settings import *
import logging import logging
from auto_request import login, click, time_convs,get_user_id from auto_request import login, click, time_convs, get_user_id
from auto_request import host, user, port, db, passwd from auto_request import host, user, port, db, passwd
...@@ -20,7 +20,7 @@ def get_data(numtime): ...@@ -20,7 +20,7 @@ def get_data(numtime):
topic_id_list = [] topic_id_list = []
if topic_id: if topic_id:
for i in topic_id: for i in topic_id:
if int(i[1]) in user_list: if int(i[0]) not in user_list:
topic_id_list.append(i) topic_id_list.append(i)
logging.info("Database version : %s " % topic_id_list) logging.info("Database version : %s " % topic_id_list)
...@@ -73,4 +73,3 @@ if __name__ == "__main__": ...@@ -73,4 +73,3 @@ if __name__ == "__main__":
except: except:
logging.error("catch exception,main:%s" % traceback.format_exc()) logging.error("catch exception,main:%s" % traceback.format_exc())
...@@ -22,7 +22,7 @@ def get_data(numtime): ...@@ -22,7 +22,7 @@ def get_data(numtime):
topic_id_list = [] topic_id_list = []
if topic_id: if topic_id:
for i in topic_id: for i in topic_id:
if int(i[1]) in user_list: if int(i[0]) not in user_list:
topic_id_list.append(i) topic_id_list.append(i)
logging.info("Database version : %s " % topic_id_list) logging.info("Database version : %s " % topic_id_list)
......
...@@ -27,7 +27,7 @@ def get_topic_id(numtime): ...@@ -27,7 +27,7 @@ def get_topic_id(numtime):
topic_id_list = [] topic_id_list = []
if topic_id: if topic_id:
for i in topic_id: for i in topic_id:
if int(i[1]) in user_list: if int(i[0]) not in user_list:
topic_id_list.append(i) topic_id_list.append(i)
logging.info("Database version : %s " % topic_id_list) logging.info("Database version : %s " % topic_id_list)
......
...@@ -24,7 +24,7 @@ def get_data(numtime): ...@@ -24,7 +24,7 @@ def get_data(numtime):
topic_id_list = [] topic_id_list = []
if user_id: if user_id:
for i in user_id: for i in user_id:
if int(i[1]) in user_list: if int(i[0]) not in user_list:
topic_id_list.append(i) topic_id_list.append(i)
logging.info("Database version : %s " % topic_id_list) logging.info("Database version : %s " % topic_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