Commit d6efa3ed authored by lixiaofang's avatar lixiaofang

add

parent 163c798a
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ChangeListManager">
<list default="true" id="7b835479-ee84-40d6-9b97-0e9285d92119" name="Default Changelist" comment="" />
<list default="true" id="7b835479-ee84-40d6-9b97-0e9285d92119" name="Default Changelist" comment="">
<change beforePath="$PROJECT_DIR$/reply_comment1.py" beforeDir="false" afterPath="$PROJECT_DIR$/reply_comment1.py" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
......@@ -23,12 +25,12 @@
</usages-collector>
<usages-collector id="statistics.file.extensions.edit">
<counts>
<entry key="py" value="720" />
<entry key="py" value="785" />
</counts>
</usages-collector>
<usages-collector id="statistics.file.types.edit">
<counts>
<entry key="Python" value="720" />
<entry key="Python" value="785" />
</counts>
</usages-collector>
</session>
......@@ -38,8 +40,8 @@
<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="114">
<caret line="386" lean-forward="true" selection-start-line="386" selection-end-line="386" />
<state relative-caret-position="177">
<caret line="382" column="4" selection-start-line="382" selection-start-column="4" selection-end-line="382" selection-end-column="4" />
<folding>
<element signature="e#0#15#0" expanded="true" />
<element signature="e#7772#8468#0" />
......@@ -49,11 +51,11 @@
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<file pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/reply_comment1.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="225">
<caret line="15" column="23" lean-forward="true" selection-start-line="15" selection-start-column="23" selection-end-line="15" selection-end-column="23" />
<state relative-caret-position="285">
<caret line="19" column="18" lean-forward="true" selection-start-line="19" selection-start-column="18" selection-end-line="19" selection-end-column="18" />
<folding>
<element signature="e#0#16#0" expanded="true" />
</folding>
......@@ -61,11 +63,11 @@
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="true">
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/answer_reply.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="109">
<caret line="47" column="50" selection-start-line="47" selection-start-column="22" selection-end-line="47" selection-end-column="50" />
<state relative-caret-position="336">
<caret line="63" column="28" selection-start-line="63" selection-start-column="28" selection-end-line="63" selection-end-column="28" />
</state>
</provider>
</entry>
......@@ -128,9 +130,9 @@
<list>
<option value="$PROJECT_DIR$/answer2.txt" />
<option value="$PROJECT_DIR$/answer1.txt" />
<option value="$PROJECT_DIR$/auto_request.py" />
<option value="$PROJECT_DIR$/answer_reply.py" />
<option value="$PROJECT_DIR$/reply_comment1.py" />
<option value="$PROJECT_DIR$/auto_request.py" />
</list>
</option>
</component>
......@@ -213,11 +215,10 @@
</component>
<component name="ToolWindowManager">
<frame x="0" y="23" width="1280" height="717" 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" />
<window_info active="true" content_ui="combo" id="Project" order="2" sideWeight="0.7872763" visible="true" weight="0.079428114" />
<window_info content_ui="combo" id="Project" order="2" sideWeight="0.7872763" visible="true" weight="0.079428114" />
<window_info id="DB Browser" order="3" />
<window_info anchor="bottom" id="Message" order="0" />
<window_info anchor="bottom" id="Find" order="1" weight="0.3284974" />
......@@ -227,7 +228,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 anchor="bottom" id="Terminal" order="8" sideWeight="0.49960285" visible="true" weight="0.0" />
<window_info active="true" anchor="bottom" id="Terminal" order="8" sideWeight="0.49960285" visible="true" weight="0.25249168" />
<window_info anchor="bottom" id="Event Log" order="9" sideWeight="0.50039715" side_tool="true" weight="0.32890365" />
<window_info anchor="bottom" id="Python Console" order="10" />
<window_info anchor="bottom" id="DB Execution Console" order="11" />
......@@ -429,20 +430,17 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/reply_comment1.py">
<entry file="file://$PROJECT_DIR$/answer_reply.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="225">
<caret line="15" column="23" lean-forward="true" selection-start-line="15" selection-start-column="23" selection-end-line="15" selection-end-column="23" />
<folding>
<element signature="e#0#16#0" expanded="true" />
</folding>
<state relative-caret-position="336">
<caret line="63" column="28" selection-start-line="63" selection-start-column="28" selection-end-line="63" selection-end-column="28" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/auto_request.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="114">
<caret line="386" lean-forward="true" selection-start-line="386" selection-end-line="386" />
<state relative-caret-position="177">
<caret line="382" column="4" selection-start-line="382" selection-start-column="4" selection-end-line="382" selection-end-column="4" />
<folding>
<element signature="e#0#15#0" expanded="true" />
<element signature="e#7772#8468#0" />
......@@ -451,10 +449,13 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/answer_reply.py">
<entry file="file://$PROJECT_DIR$/reply_comment1.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="109">
<caret line="47" column="50" selection-start-line="47" selection-start-column="22" selection-end-line="47" selection-end-column="50" />
<state relative-caret-position="285">
<caret line="19" column="18" lean-forward="true" selection-start-line="19" selection-start-column="18" selection-end-line="19" selection-end-column="18" />
<folding>
<element signature="e#0#16#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
......
......@@ -63,7 +63,8 @@ if __name__ == "__main__":
redis_client = set_reply_to_redis()
have_reply = redis_client.get(redis_key1)
if have_reply:
result = json.loads(str(have_reply, encoding="utf-8"))
if result:
redis_client.set(redis_key2, reply_data_comment)
else:
redis_client.set(redis_key1, reply_data_comment)
......
......@@ -13,18 +13,16 @@ if __name__ == "__main__":
redis_client = set_reply_to_redis()
have_reply1 = redis_client.get(redis_key1)
logging.info("get------have_replys1:%s" % have_reply1)
result = json.loads(str(have_reply1, encoding="utf-8"))
logging.info("get------have_replys1:%s" % result)
if result:
for item in result:
cook = login()
reply2(cook, item["topic_id"], item["answer"], item["id"])
else:
have_reply2 = redis_client.get(redis_key2)
logging.info("get---_++++---have_replys1:%s" % have_reply2)
result = json.loads(str(have_reply2, encoding="utf-8"))
logging.info("get---_++++---have_replys1:%s" % have_reply1)
logging.info("get---_++++---have_replys1:%s" % result)
for item in result:
cook = login()
reply2(cook, item["topic_id"], item["answer"], item["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