Commit 6426d649 authored by lixiaofang's avatar lixiaofang

add

parent e6b9074b
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ChangeListManager">
<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>
<list default="true" id="fd1f0b61-1139-44e5-87e7-f8b86ff52376" name="Default Changelist" comment="" />
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
......@@ -42,14 +40,14 @@
<entry key="comment" value="59" />
<entry key="dummy" value="6" />
<entry key="guanshui" value="2" />
<entry key="py" value="3652" />
<entry key="py" value="3671" />
<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="3652" />
<entry key="Python" value="3671" />
</counts>
</usages-collector>
</session>
......@@ -144,8 +142,8 @@
<file pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/offline_comment.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="134">
<caret line="51" column="20" lean-forward="true" selection-start-line="51" selection-start-column="20" selection-end-line="51" selection-end-column="20" />
<state relative-caret-position="152">
<caret line="46" column="57" selection-start-line="46" selection-start-column="48" selection-end-line="46" selection-end-column="57" />
<folding>
<element signature="e#0#15#0" expanded="true" />
</folding>
......@@ -180,7 +178,7 @@
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/auto_request.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="320">
<state relative-caret-position="1365">
<caret line="95" column="4" selection-start-line="95" selection-start-column="4" selection-end-line="95" selection-end-column="4" />
<folding>
<element signature="e#0#15#0" expanded="true" />
......@@ -496,6 +494,7 @@
</component>
<component name="ToolWindowManager">
<frame x="0" y="23" width="1280" height="725" extended-state="0" />
<editor active="true" />
<layout>
<window_info id="Structure" order="0" sideWeight="0.21188119" side_tool="true" weight="0.19112115" />
<window_info id="Favorites" order="1" side_tool="true" />
......@@ -509,7 +508,7 @@
<window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
<window_info anchor="bottom" id="TODO" order="6" />
<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.22459017" />
<window_info active="true" anchor="bottom" id="Terminal" order="8" visible="true" weight="0.12786885" />
<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="DB Execution Console" order="11" />
......@@ -896,30 +895,30 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/auto_request.py">
<entry file="file://$PROJECT_DIR$/auto_click.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="320">
<caret line="95" column="4" selection-start-line="95" selection-start-column="4" selection-end-line="95" selection-end-column="4" />
<state relative-caret-position="255">
<caret line="17" column="106" selection-start-line="17" selection-start-column="13" selection-end-line="17" selection-end-column="106" />
<folding>
<element signature="e#0#15#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/auto_click.py">
<entry file="file://$PROJECT_DIR$/auto_at_once.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="255">
<caret line="17" column="106" selection-start-line="17" selection-start-column="13" selection-end-line="17" selection-end-column="106" />
<state relative-caret-position="270">
<caret line="18" column="152" lean-forward="true" selection-start-line="18" selection-start-column="116" selection-end-line="18" selection-end-column="152" />
<folding>
<element signature="e#0#15#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/auto_at_once.py">
<entry file="file://$PROJECT_DIR$/auto_request.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="270">
<caret line="18" column="152" lean-forward="true" selection-start-line="18" selection-start-column="116" selection-end-line="18" selection-end-column="152" />
<state relative-caret-position="1365">
<caret line="95" column="4" selection-start-line="95" selection-start-column="4" selection-end-line="95" selection-end-column="4" />
<folding>
<element signature="e#0#15#0" expanded="true" />
</folding>
......@@ -928,8 +927,8 @@
</entry>
<entry file="file://$PROJECT_DIR$/offline_comment.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="134">
<caret line="51" column="20" lean-forward="true" selection-start-line="51" selection-start-column="20" selection-end-line="51" selection-end-column="20" />
<state relative-caret-position="152">
<caret line="46" column="57" selection-start-line="46" selection-start-column="48" selection-end-line="46" selection-end-column="57" />
<folding>
<element signature="e#0#15#0" expanded="true" />
</folding>
......
......@@ -44,8 +44,7 @@ def get_data(num1, num2):
pc = pymysql.connect(host=host, user=user, passwd=passwd, db=db, port=3306)
cursor = pc.cursor()
cursor.execute(
"SELECT id,user_id FROM topic WHERE is_online =1 and (id > " + str(num1) + " and id <= " + str(
num2) + ") and (content_level = 4 or content_level = 5) ")
"SELECT id,user_id FROM topic WHERE is_online =1 and (id > 0 and id <= 10000) and (content_level = 4 or content_level = 5) ")
data = cursor.fetchall()
topic_id = list(data)
logging.info("Database version : %s " % topic_id)
......
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