Commit 6c68c5f7 authored by lixiaofang's avatar lixiaofang

cookies

parent 5953d709
<?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$/auto_follow_majia.py" beforeDir="false" afterPath="$PROJECT_DIR$/auto_follow_majia.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" />
......@@ -85,7 +83,7 @@
<entry key="cuigeng" value="1" />
<entry key="data" value="12" />
<entry key="dummy" value="31" />
<entry key="py" value="8346" />
<entry key="py" value="8371" />
<entry key="unr_data" value="1" />
<entry key="xuqiu" value="1" />
</counts>
......@@ -93,7 +91,7 @@
<usages-collector id="statistics.file.types.edit">
<counts>
<entry key="PLAIN_TEXT" value="177" />
<entry key="Python" value="8346" />
<entry key="Python" value="8371" />
</counts>
</usages-collector>
</session>
......@@ -181,16 +179,15 @@
<file pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/auto_follow_majia.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="124">
<caret line="146" lean-forward="true" selection-start-line="146" selection-end-line="146" />
<state relative-caret-position="123">
<caret line="117" column="131" selection-start-line="117" selection-start-column="131" selection-end-line="117" selection-end-column="131" />
<folding>
<element signature="e#0#15#0" expanded="true" />
<element signature="e#421#598#0" />
<element signature="e#622#1009#0" />
<element signature="e#1036#1733#0" />
<element signature="e#1769#2154#0" />
<element signature="e#2177#2331#0" />
<marker date="1544341116000" expanded="true" signature="1031:1734" ph="..." />
<marker date="1544342302000" expanded="true" signature="1031:1734" ph="..." />
</folding>
</state>
</provider>
......@@ -344,9 +341,9 @@
</list>
</option>
</component>
<component name="ProjectFrameBounds" extendedState="1">
<option name="x" value="375" />
<option name="y" value="41" />
<component name="ProjectFrameBounds">
<option name="x" value="-459" />
<option name="y" value="96" />
<option name="width" value="1436" />
<option name="height" value="735" />
</component>
......@@ -527,10 +524,9 @@
<servers />
</component>
<component name="ToolWindowManager">
<frame x="375" y="41" width="1436" height="735" extended-state="1" />
<editor active="true" />
<frame x="-28" y="23" width="1436" height="735" extended-state="1" />
<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="Favorites" order="2" side_tool="true" />
<window_info anchor="bottom" id="Message" order="0" />
......@@ -541,7 +537,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" 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="Python Console" order="10" />
<window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
......@@ -968,16 +964,15 @@
</entry>
<entry file="file://$PROJECT_DIR$/auto_follow_majia.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="124">
<caret line="146" lean-forward="true" selection-start-line="146" selection-end-line="146" />
<state relative-caret-position="123">
<caret line="117" column="131" selection-start-line="117" selection-start-column="131" selection-end-line="117" selection-end-column="131" />
<folding>
<element signature="e#0#15#0" expanded="true" />
<element signature="e#421#598#0" />
<element signature="e#622#1009#0" />
<element signature="e#1036#1733#0" />
<element signature="e#1769#2154#0" />
<element signature="e#2177#2331#0" />
<marker date="1544341116000" expanded="true" signature="1031:1734" ph="..." />
<marker date="1544342302000" expanded="true" signature="1031:1734" ph="..." />
</folding>
</state>
</provider>
......
......@@ -111,11 +111,7 @@ def get_follw_majia(numtime):
db = pymysql.connect(host="rm-2ze5k2we69904787l.mysql.rds.aliyuncs.com", user='work', passwd='Gengmei123',
db="alpha", port=3306)
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,"
"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))
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))
data = cursor.fetchall()
data=list(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