Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
lzzzzl
/
PipData
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
28498033
authored
Oct 27, 2021
by
刘豪
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
update
parent
3697aaed
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
21 deletions
extract/ex_dashboard.py
utils/msg_handler.py
extract/ex_dashboard.py
View file @
28498033
...
@@ -7,23 +7,23 @@ class ExDashboard(Base):
...
@@ -7,23 +7,23 @@ class ExDashboard(Base):
def
email_list
(
self
,
condition
):
def
email_list
(
self
,
condition
):
#
#
筛选字段
# 筛选字段
#
con_str = super().condition_to_str(condition['condition'])
con_str
=
super
()
.
condition_to_str
(
condition
[
'condition'
])
#
#
#
订单数据库
# 订单数据库
#
db = ConnList.Dashboard()
db
=
ConnList
.
Dashboard
()
#
sql = "SELECT email \
sql
=
"SELECT email
\
#
FROM \
FROM
\
#
lie_email_list \
lie_email_list
\
#
WHERE %s" \
WHERE
%
s"
\
#
% con_str
%
con_str
#
results = DBHandler.read(db=db, sql=sql)
results
=
DBHandler
.
read
(
db
=
db
,
sql
=
sql
)
#
#
#
结果格式转换为字典
# 结果格式转换为字典
#
final_result = super().result_to_list(results)
final_result
=
super
()
.
result_to_list
(
results
)
#
print('final_result', len(final_result))
print
(
'final_result'
,
len
(
final_result
))
#
return final_result
return
final_result
return
[
"hao@ichunt.com"
]
#
return ["hao@ichunt.com"]
"""
"""
汇总订单数据
汇总订单数据
...
...
utils/msg_handler.py
View file @
28498033
...
@@ -26,8 +26,8 @@ class MsgHandler:
...
@@ -26,8 +26,8 @@ class MsgHandler:
"content"
:
msg
"content"
:
msg
}
}
}
}
print
(
"send_dd_msg"
,
data
)
#
print("send_dd_msg", data)
#
res = requests.post(robot_api + robot, json=data)
res
=
requests
.
post
(
robot_api
+
robot
,
json
=
data
)
# print(res)
# print(res)
@staticmethod
@staticmethod
...
@@ -38,8 +38,8 @@ class MsgHandler:
...
@@ -38,8 +38,8 @@ class MsgHandler:
"content"
:
msg
"content"
:
msg
}
}
}
}
print
(
"send_point_dd_msg"
,
data
)
#
print("send_point_dd_msg", data)
#
res = requests.post(robot_api, json=data)
res
=
requests
.
post
(
robot_api
,
json
=
data
)
# print(res)
# print(res)
"""
"""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment