Skip to content

Commit

Permalink
update requirements.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
wuyingren committed Jul 7, 2017
1 parent 30d7c75 commit 91c4848
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ $ sudo apt-get -y install redis-server
### 安装依赖
```
$ pip3 install -r requirements.txt
$ pip3 install requests[socks]
```

### 创建数据库
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
requests
requests[socks]
lxml
redis
rq
Expand Down
5 changes: 4 additions & 1 deletion v2ex_tester/topic_tester.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,10 @@ def start(t_id,sleep_time):
result=t.web_test(t_id, 0)
t.write_to_sql(result['T_ID'],result['NODE'],result['STATUS'],result['TIME'])
t.SQ.close_datebase()
logging.info('Topic test finish. Topic id is %d, results is : node id %d, status %d' % (int(t_id),result['NODE'],result['STATUS']))
if result['NODE'] is not None:
logging.info('Topic test finish. Topic id is %d, results is : node id %d, status %d' % (int(t_id),result['NODE'],result['STATUS']))
else:
logging.info('Topic test finish. Topic id is %d, results is : node id is None, status %d' % (int(t_id),result['STATUS']))
return

if __name__ == '__main__':
Expand Down

0 comments on commit 91c4848

Please sign in to comment.