Commit 582cd130 authored by lixiaofang's avatar lixiaofang

add

parent 9dff4301
...@@ -40,14 +40,14 @@ ...@@ -40,14 +40,14 @@
<entry key="comment" value="59" /> <entry key="comment" value="59" />
<entry key="dummy" value="6" /> <entry key="dummy" value="6" />
<entry key="guanshui" value="2" /> <entry key="guanshui" value="2" />
<entry key="py" value="4185" /> <entry key="py" value="4216" />
<entry key="xuqiu" value="223" /> <entry key="xuqiu" value="223" />
</counts> </counts>
</usages-collector> </usages-collector>
<usages-collector id="statistics.file.types.edit"> <usages-collector id="statistics.file.types.edit">
<counts> <counts>
<entry key="PLAIN_TEXT" value="290" /> <entry key="PLAIN_TEXT" value="290" />
<entry key="Python" value="4185" /> <entry key="Python" value="4216" />
</counts> </counts>
</usages-collector> </usages-collector>
</session> </session>
...@@ -177,8 +177,8 @@ ...@@ -177,8 +177,8 @@
<file pinned="false" current-in-tab="true"> <file pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/auto_commnet.py"> <entry file="file://$PROJECT_DIR$/auto_commnet.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="223"> <state relative-caret-position="-32">
<caret line="17" column="60" selection-start-line="17" selection-start-column="60" selection-end-line="17" selection-end-column="60" /> <caret line="22" column="56" selection-start-line="22" selection-start-column="56" selection-end-line="22" selection-end-column="56" />
<folding> <folding>
<element signature="e#0#15#0" expanded="true" /> <element signature="e#0#15#0" expanded="true" />
</folding> </folding>
...@@ -524,6 +524,7 @@ ...@@ -524,6 +524,7 @@
</component> </component>
<component name="ToolWindowManager"> <component name="ToolWindowManager">
<frame x="-322" y="-1080" width="1920" height="1080" extended-state="6" /> <frame x="-322" y="-1080" width="1920" height="1080" extended-state="6" />
<editor active="true" />
<layout> <layout>
<window_info id="Structure" order="0" sideWeight="0.21188119" side_tool="true" weight="0.19112115" /> <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 id="Favorites" order="1" side_tool="true" />
...@@ -956,8 +957,8 @@ ...@@ -956,8 +957,8 @@
</entry> </entry>
<entry file="file://$PROJECT_DIR$/auto_commnet.py"> <entry file="file://$PROJECT_DIR$/auto_commnet.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="223"> <state relative-caret-position="-32">
<caret line="17" column="60" selection-start-line="17" selection-start-column="60" selection-end-line="17" selection-end-column="60" /> <caret line="22" column="56" selection-start-line="22" selection-start-column="56" selection-end-line="22" selection-end-column="56" />
<folding> <folding>
<element signature="e#0#15#0" expanded="true" /> <element signature="e#0#15#0" expanded="true" />
</folding> </folding>
......
...@@ -15,8 +15,7 @@ def get_topic_id(numtime): ...@@ -15,8 +15,7 @@ def get_topic_id(numtime):
cursor = pc.cursor() cursor = pc.cursor()
cursor.execute( 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 id,user_id from topic where user_id = 241529804" "select id,user_id from topic where user_id = 241529801 or id = 241529809"
) )
data = cursor.fetchall() data = cursor.fetchall()
topic_id = list(data) topic_id = list(data)
...@@ -55,12 +54,16 @@ if __name__ == "__main__": ...@@ -55,12 +54,16 @@ if __name__ == "__main__":
for i in topic_id: for i in topic_id:
if i[0] not in dicts.keys(): if i[0] not in dicts.keys():
dicts.setdefault(i[0], []) dicts.setdefault(i[0], [])
dicts[i[0]].append(i[1]) dicts[i[0]].append(i[1])
else: else:
dicts[i[0]].append(i[1]) dicts[i[0]].append(i[1])
logging.info("get dicts:%s"%dicts)
comment = get_comment() comment = get_comment()
for key, value in dicts.items(): for key, value in dicts.items():
......
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