Commit f578173f authored by lixiaofang's avatar lixiaofang

time

parent 297c9dd6
...@@ -28,13 +28,13 @@ def get_data(): ...@@ -28,13 +28,13 @@ def get_data():
def principal_offline_comment1(): def principal_offline_comment1():
try: try:
logging.info("comment offline pictorial") logging.info("comment offline pictorial")
user_id = get_data() user_id = get_data()
dicts = {} dicts = {}
for i in user_id: for i in user_id:
for num in range(4): follow_num = random.randint(5, 20)
for num in range(follow_num):
majia_user_id = get_majia_reply(i[0]) majia_user_id = get_majia_reply(i[0])
cook = logins(majia_user_id) cook = logins(majia_user_id)
comment = get_pictorial_comment() comment = get_pictorial_comment()
......
...@@ -42,21 +42,6 @@ auto_reply_url = "http://earth.iyanzhi.com/api/v1/reply/create" ...@@ -42,21 +42,6 @@ auto_reply_url = "http://earth.iyanzhi.com/api/v1/reply/create"
auto_follow_url = "http://earth.iyanzhi.com/api/v1/follow" auto_follow_url = "http://earth.iyanzhi.com/api/v1/follow"
auto_urge_url = "http://earth.iyanzhi.com/api/v1/user/urge" auto_urge_url = "http://earth.iyanzhi.com/api/v1/user/urge"
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'alpha',
'USER': 'work',
'PASSWORD': 'oars152!traipseize738',
'HOST': '172.17.40.136',
'PORT': '3306',
'OPTIONS': {
"init_command": "SET foreign_key_checks = 0;",
"charset": "utf8mb4",
}
}
}
host = DATABASES['default']['HOST'] host = DATABASES['default']['HOST']
user = DATABASES['default']['USER'] user = DATABASES['default']['USER']
...@@ -462,7 +447,7 @@ def pictorial_reply(cookies_get, id, content): ...@@ -462,7 +447,7 @@ def pictorial_reply(cookies_get, id, content):
data=post_dict) data=post_dict)
logging.info("response.text:%s" % response.text) logging.info("response.text:%s" % response.text)
get_error(response.text,"pictorial_reply",id) get_error(response.text, "pictorial_reply", id)
except: except:
logging.error("catch exception,logins:%s" % traceback.format_exc()) logging.error("catch exception,logins:%s" % traceback.format_exc())
......
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