Commit 6c68c5f7 authored by lixiaofang's avatar lixiaofang

cookies

parent 5953d709
<?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$/auto_follow_majia.py" beforeDir="false" afterPath="$PROJECT_DIR$/auto_follow_majia.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" />
...@@ -85,7 +83,7 @@ ...@@ -85,7 +83,7 @@
<entry key="cuigeng" value="1" /> <entry key="cuigeng" value="1" />
<entry key="data" value="12" /> <entry key="data" value="12" />
<entry key="dummy" value="31" /> <entry key="dummy" value="31" />
<entry key="py" value="8346" /> <entry key="py" value="8371" />
<entry key="unr_data" value="1" /> <entry key="unr_data" value="1" />
<entry key="xuqiu" value="1" /> <entry key="xuqiu" value="1" />
</counts> </counts>
...@@ -93,7 +91,7 @@ ...@@ -93,7 +91,7 @@
<usages-collector id="statistics.file.types.edit"> <usages-collector id="statistics.file.types.edit">
<counts> <counts>
<entry key="PLAIN_TEXT" value="177" /> <entry key="PLAIN_TEXT" value="177" />
<entry key="Python" value="8346" /> <entry key="Python" value="8371" />
</counts> </counts>
</usages-collector> </usages-collector>
</session> </session>
...@@ -181,16 +179,15 @@ ...@@ -181,16 +179,15 @@
<file pinned="false" current-in-tab="true"> <file pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/auto_follow_majia.py"> <entry file="file://$PROJECT_DIR$/auto_follow_majia.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="124"> <state relative-caret-position="123">
<caret line="146" lean-forward="true" selection-start-line="146" selection-end-line="146" /> <caret line="117" column="131" selection-start-line="117" selection-start-column="131" selection-end-line="117" selection-end-column="131" />
<folding> <folding>
<element signature="e#0#15#0" expanded="true" /> <element signature="e#0#15#0" expanded="true" />
<element signature="e#421#598#0" /> <element signature="e#421#598#0" />
<element signature="e#622#1009#0" /> <element signature="e#622#1009#0" />
<element signature="e#1036#1733#0" /> <element signature="e#1036#1733#0" />
<element signature="e#1769#2154#0" /> <element signature="e#1769#2154#0" />
<element signature="e#2177#2331#0" /> <marker date="1544342302000" expanded="true" signature="1031:1734" ph="..." />
<marker date="1544341116000" expanded="true" signature="1031:1734" ph="..." />
</folding> </folding>
</state> </state>
</provider> </provider>
...@@ -344,9 +341,9 @@ ...@@ -344,9 +341,9 @@
</list> </list>
</option> </option>
</component> </component>
<component name="ProjectFrameBounds" extendedState="1"> <component name="ProjectFrameBounds">
<option name="x" value="375" /> <option name="x" value="-459" />
<option name="y" value="41" /> <option name="y" value="96" />
<option name="width" value="1436" /> <option name="width" value="1436" />
<option name="height" value="735" /> <option name="height" value="735" />
</component> </component>
...@@ -527,10 +524,9 @@ ...@@ -527,10 +524,9 @@
<servers /> <servers />
</component> </component>
<component name="ToolWindowManager"> <component name="ToolWindowManager">
<frame x="375" y="41" width="1436" height="735" extended-state="1" /> <frame x="-28" y="23" width="1436" height="735" extended-state="1" />
<editor active="true" />
<layout> <layout>
<window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.14487633" /> <window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.14487633" />
<window_info id="Structure" order="1" side_tool="true" weight="0.25" /> <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
<window_info id="Favorites" order="2" side_tool="true" /> <window_info id="Favorites" order="2" side_tool="true" />
<window_info anchor="bottom" id="Message" order="0" /> <window_info anchor="bottom" id="Message" order="0" />
...@@ -541,7 +537,7 @@ ...@@ -541,7 +537,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 anchor="bottom" id="Terminal" order="8" visible="true" weight="0.0" /> <window_info active="true" anchor="bottom" id="Terminal" order="8" visible="true" weight="0.7403226" />
<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="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" /> <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
...@@ -968,16 +964,15 @@ ...@@ -968,16 +964,15 @@
</entry> </entry>
<entry file="file://$PROJECT_DIR$/auto_follow_majia.py"> <entry file="file://$PROJECT_DIR$/auto_follow_majia.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="124"> <state relative-caret-position="123">
<caret line="146" lean-forward="true" selection-start-line="146" selection-end-line="146" /> <caret line="117" column="131" selection-start-line="117" selection-start-column="131" selection-end-line="117" selection-end-column="131" />
<folding> <folding>
<element signature="e#0#15#0" expanded="true" /> <element signature="e#0#15#0" expanded="true" />
<element signature="e#421#598#0" /> <element signature="e#421#598#0" />
<element signature="e#622#1009#0" /> <element signature="e#622#1009#0" />
<element signature="e#1036#1733#0" /> <element signature="e#1036#1733#0" />
<element signature="e#1769#2154#0" /> <element signature="e#1769#2154#0" />
<element signature="e#2177#2331#0" /> <marker date="1544342302000" expanded="true" signature="1031:1734" ph="..." />
<marker date="1544341116000" expanded="true" signature="1031:1734" ph="..." />
</folding> </folding>
</state> </state>
</provider> </provider>
......
...@@ -111,11 +111,7 @@ def get_follw_majia(numtime): ...@@ -111,11 +111,7 @@ def get_follw_majia(numtime):
db = pymysql.connect(host="rm-2ze5k2we69904787l.mysql.rds.aliyuncs.com", user='work', passwd='Gengmei123', db = pymysql.connect(host="rm-2ze5k2we69904787l.mysql.rds.aliyuncs.com", user='work', passwd='Gengmei123',
db="alpha", port=3306) db="alpha", port=3306)
cursor = db.cursor() cursor = db.cursor()
cursor.execute("select temp1.user_id,temp1.email,temp2.user_id from account_user_auth temp1 left join (select user_id,follow_id," cursor.execute("select temp1.user_id,temp1.email,temp2.user_id from account_user_auth temp1 left join (select user_id,follow_id,create_time from user_follow) temp2 on temp1.user_id=temp2.follow_id where temp1.email in ('s_05tmwu@shadow.com','s_07CRHt@shadow.com','s_0bdxxU@shadow.com','s_0mfxcO@shadow.com','s_0u6eaV@shadow.com','s_0UudEr@shadow.com','s_1b3v5V@shadow.com','s_ZVuLyC@shadow.com','s_1dbAoA@shadow.com','s_1dholX@shadow.com','s_1EpLlt@shadow.com','s_1EpLlt@shadow.com') and temp2.create_time like %s"%(numtime))
"create_time from user_follow) temp2 on temp1.user_id=temp2.follow_id where temp1.email in ('s_05tmwu@shadow.com',"
"'s_07CRHt@shadow.com','s_0bdxxU@shadow.com','s_0mfxcO@shadow.com','s_0u6eaV@shadow.com','s_0UudEr@shadow.com',"
"'s_1b3v5V@shadow.com','s_ZVuLyC@shadow.com','s_1dbAoA@shadow.com',"
"'s_1dholX@shadow.com','s_1EpLlt@shadow.com','s_1EpLlt@shadow.com') and temp2.create_time like %s"%(numtime))
data = cursor.fetchall() data = cursor.fetchall()
data=list(data) data=list(data)
logging.info("Database version : %s " % data) logging.info("Database version : %s " % data)
......
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