Commit 2079f8f1 authored by lixiaofang's avatar lixiaofang

add

parent bca09218
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project version="4"> <project version="4">
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="fd1f0b61-1139-44e5-87e7-f8b86ff52376" name="Default Changelist" comment=""> <list default="true" id="fd1f0b61-1139-44e5-87e7-f8b86ff52376" name="Default Changelist" comment="" />
<change beforePath="$PROJECT_DIR$/offline_comment.py" beforeDir="false" afterPath="$PROJECT_DIR$/offline_comment.py" afterDir="false" />
</list>
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" /> <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
<option name="SHOW_DIALOG" value="false" /> <option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" /> <option name="HIGHLIGHT_CONFLICTS" value="true" />
...@@ -122,8 +120,8 @@ ...@@ -122,8 +120,8 @@
<file pinned="false" current-in-tab="true"> <file pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/offline_comment.py"> <entry file="file://$PROJECT_DIR$/offline_comment.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="375"> <state relative-caret-position="325">
<caret line="25" column="9" lean-forward="true" selection-start-line="25" selection-start-column="9" selection-end-line="25" selection-end-column="9" /> <caret line="39" column="32" selection-start-line="39" selection-start-column="32" selection-end-line="39" selection-end-column="32" />
<folding> <folding>
<element signature="e#0#15#0" expanded="true" /> <element signature="e#0#15#0" expanded="true" />
</folding> </folding>
...@@ -502,7 +500,7 @@ ...@@ -502,7 +500,7 @@
<window_info anchor="bottom" id="Inspection" order="5" weight="0.4" /> <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
<window_info anchor="bottom" id="TODO" order="6" /> <window_info anchor="bottom" id="TODO" order="6" />
<window_info anchor="bottom" id="Version Control" order="7" show_stripe_button="false" /> <window_info anchor="bottom" id="Version Control" order="7" show_stripe_button="false" />
<window_info active="true" anchor="bottom" id="Terminal" order="8" visible="true" weight="0.40103626" /> <window_info active="true" anchor="bottom" id="Terminal" order="8" visible="true" weight="0.29533678" />
<window_info anchor="bottom" id="Event Log" order="9" side_tool="true" /> <window_info anchor="bottom" id="Event Log" order="9" side_tool="true" />
<window_info anchor="bottom" id="Python Console" order="10" /> <window_info anchor="bottom" id="Python Console" order="10" />
<window_info anchor="bottom" id="DB Execution Console" order="11" /> <window_info anchor="bottom" id="DB Execution Console" order="11" />
...@@ -865,8 +863,8 @@ ...@@ -865,8 +863,8 @@
</entry> </entry>
<entry file="file://$PROJECT_DIR$/offline_comment.py"> <entry file="file://$PROJECT_DIR$/offline_comment.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="375"> <state relative-caret-position="325">
<caret line="25" column="9" lean-forward="true" selection-start-line="25" selection-start-column="9" selection-end-line="25" selection-end-column="9" /> <caret line="39" column="32" selection-start-line="39" selection-start-column="32" selection-end-line="39" selection-end-column="32" />
<folding> <folding>
<element signature="e#0#15#0" expanded="true" /> <element signature="e#0#15#0" expanded="true" />
</folding> </folding>
......
...@@ -32,7 +32,7 @@ host = "rm-2zeaut61u9sm21m0b.mysql.rds.aliyuncs.com" ...@@ -32,7 +32,7 @@ host = "rm-2zeaut61u9sm21m0b.mysql.rds.aliyuncs.com"
user = "work" user = "work"
passwd = "Gengmei123" passwd = "Gengmei123"
db = "alpha" db = "alpha"
port ="3306" port =3306
def get_majia(): def get_majia():
......
...@@ -8,6 +8,8 @@ import traceback ...@@ -8,6 +8,8 @@ import traceback
from log_settings import * from log_settings import *
import logging import logging
from auto_request import logins, reply, get_offline_comment, time_convs from auto_request import logins, reply, get_offline_comment, time_convs
from auto_request import host, user, port, db, passwd
auto_click_url = "http://earth.igengmei.com/api/v1/like" auto_click_url = "http://earth.igengmei.com/api/v1/like"
auto_reply_url = "http://earth.igengmei.com/api/v1/reply/create" auto_reply_url = "http://earth.igengmei.com/api/v1/reply/create"
auto_follow_url = "http://earth.igengmei.com/api/v1/follow" auto_follow_url = "http://earth.igengmei.com/api/v1/follow"
...@@ -23,16 +25,10 @@ auto_urge_url = "http://earth.igengmei.com/api/v1/user/urge" ...@@ -23,16 +25,10 @@ auto_urge_url = "http://earth.igengmei.com/api/v1/user/urge"
# 注意需要禁止本帖作者评论 # 注意需要禁止本帖作者评论
host = ""
user = "work"
passwd = "Gengmei123"
db = "alpha"
port =3306
def get_data(numtime): def get_data(numtime):
try: try:
pc = pymysql.connect(host="rm-2zeaut61u9sm21m0b.mysql.rds.aliyuncs.com", user="work", passwd="Gengmei123", db="alpha", port=3306) pc = pymysql.connect(host=host, user=user, passwd=passwd, db=db, port=3306)
cursor = pc.cursor() cursor = pc.cursor()
cursor.execute( "SELECT id FROM topic WHERE is_online =1 and create_time >= %s and (content_level = 4 or content_level = 5) and user_id in (select user_id from user_extra where is_shadow = 0)",(numtime)) cursor.execute( "SELECT id FROM topic WHERE is_online =1 and create_time >= %s and (content_level = 4 or content_level = 5) and user_id in (select user_id from user_extra where is_shadow = 0)",(numtime))
data = cursor.fetchall() data = 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