Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cake-bot
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Oleksandr Barabash
cake-bot
Commits
9333bf0e
Commit
9333bf0e
authored
Sep 23, 2023
by
Oleksandr Barabash
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
small updates
parent
82dd849c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
3 deletions
+1
-3
app.py
app.py
+0
-2
messaging_extension_action_preview_bot.py
bots/messaging_extension_action_preview_bot.py
+1
-1
No files found.
app.py
View file @
9333bf0e
...
...
@@ -337,8 +337,6 @@ async def v1_mars_report(request: Request) -> Response:
report
=
MarsReport
.
load
(
request_json
,
unknown
=
EXCLUDE
)
emails
=
await
BOT
.
handle_mars_report
(
channel_id
,
report
)
Log
.
d
(
TAG
,
f
"v1_mars_report::notification: '{emails}'"
)
data
=
None
if
isinstance
(
emails
,
list
)
and
len
(
emails
)
>
0
:
data
=
{
"data"
:
emails
}
return
make_response
(
200
,
"OK"
,
data
)
except
Exception
:
...
...
bots/messaging_extension_action_preview_bot.py
View file @
9333bf0e
...
...
@@ -143,7 +143,7 @@ class TeamsMessagingExtensionsActionPreviewBot(TeamsActivityHandler):
)
.
members
.
get
()
emails
=
[]
for
member
in
response
.
value
:
if
member
.
mail
is
not
None
:
if
member
.
mail
:
emails
.
append
(
member
.
mail
)
future
.
set_result
(
emails
)
...
...
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