Commit 4343dbfa authored by lixiaofang's avatar lixiaofang

add

parent fa61227b
......@@ -3,8 +3,6 @@
<component name="ChangeListManager">
<list default="true" id="fd1f0b61-1139-44e5-87e7-f8b86ff52376" name="Default Changelist" comment="">
<change beforePath="$PROJECT_DIR$/auto_commnet.py" beforeDir="false" afterPath="$PROJECT_DIR$/auto_commnet.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/auto_request.py" beforeDir="false" afterPath="$PROJECT_DIR$/auto_request.py" afterDir="false" />
<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="SHOW_DIALOG" value="false" />
......@@ -44,14 +42,14 @@
<entry key="comment" value="59" />
<entry key="dummy" value="6" />
<entry key="guanshui" value="2" />
<entry key="py" value="4167" />
<entry key="py" value="4180" />
<entry key="xuqiu" value="223" />
</counts>
</usages-collector>
<usages-collector id="statistics.file.types.edit">
<counts>
<entry key="PLAIN_TEXT" value="290" />
<entry key="Python" value="4167" />
<entry key="Python" value="4180" />
</counts>
</usages-collector>
</session>
......@@ -118,7 +116,7 @@
</session>
</component>
<component name="FileEditorManager">
<splitter split-orientation="horizontal" split-proportion="0.5">
<splitter split-orientation="horizontal" split-proportion="0.3283936">
<split-first>
<leaf>
<file pinned="false" current-in-tab="false">
......@@ -181,8 +179,11 @@
<file pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/auto_commnet.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="105">
<caret line="7" column="74" selection-start-line="7" selection-start-column="74" selection-end-line="7" selection-end-column="74" />
<state relative-caret-position="375">
<caret line="25" lean-forward="true" selection-start-line="25" selection-end-line="25" />
<folding>
<element signature="e#0#15#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
......@@ -958,8 +959,11 @@
</entry>
<entry file="file://$PROJECT_DIR$/auto_commnet.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="105">
<caret line="7" column="74" selection-start-line="7" selection-start-column="74" selection-end-line="7" selection-end-column="74" />
<state relative-caret-position="375">
<caret line="25" lean-forward="true" selection-start-line="25" selection-end-line="25" />
<folding>
<element signature="e#0#15#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
......
......@@ -5,7 +5,7 @@ import pymysql
import random
import traceback
import logging
from auto_request import login, time_convs, reply, get_comment,get_user_id
from auto_request import login, time_convs, reply, get_comment, get_user_id
from auto_request import host, user, port, db, passwd
......@@ -14,7 +14,10 @@ def get_topic_id(numtime):
pc = pymysql.connect(host=host, user=user, passwd=passwd, db=db, port=3306)
cursor = pc.cursor()
cursor.execute(
"SELECT user_id,id FROM topic WHERE is_online=1 and create_time LIKE '%%%%%s%%%%' " % numtime)
# "SELECT user_id,id FROM topic WHERE is_online=1 and create_time LIKE '%%%%%s%%%%' " % numtime
"select * from topic where user_id = 241529804"
)
data = cursor.fetchall()
topic_id = list(data)
user_list = get_user_id()
......@@ -70,11 +73,8 @@ if __name__ == "__main__":
cook = login()
if cook is not None:
reply(cook, id, comment)
except:
logging.error("catch exception,main :%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