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
761d2bd9
Commit
761d2bd9
authored
May 11, 2022
by
Oleksandr Barabash
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor update. some fixes. app id changed
parent
c6248e99
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
config.py
config.py
+8
-4
notification.py
entities/json/notification.py
+1
-3
No files found.
config.py
View file @
761d2bd9
...
@@ -24,12 +24,16 @@ class AppConfig:
...
@@ -24,12 +24,16 @@ class AppConfig:
""" Bot Configuration """
""" Bot Configuration """
PORT
=
os
.
environ
.
get
(
"HOST_PORT"
,
8000
)
PORT
=
os
.
environ
.
get
(
"HOST_PORT"
,
8000
)
APP_ID
=
os
.
environ
.
get
(
"MS_APP_ID"
,
#
APP_ID = os.environ.get("MS_APP_ID",
"d472f12a-323b-4058-b89b-7a4b15c48ab7"
)
#
"d472f12a-323b-4058-b89b-7a4b15c48ab7")
APP_PASSWORD
=
os
.
environ
.
get
(
"MS_APP_PASSWORD"
,
#
APP_PASSWORD = os.environ.get("MS_APP_PASSWORD",
"ZdL|zw:]Io_}goFfWs2{w70g+.FXwQ"
)
#
"ZdL|zw:]Io_}goFfWs2{w70g+.FXwQ")
TENANT_ID
=
os
.
environ
.
get
(
"TENANT_ID"
,
TENANT_ID
=
os
.
environ
.
get
(
"TENANT_ID"
,
"5df91ebc-64fa-4aa1-862c-bdc0cba3c656"
)
"5df91ebc-64fa-4aa1-862c-bdc0cba3c656"
)
APP_PASSWORD
=
os
.
environ
.
get
(
"MS_APP_PASSWORD"
,
"ahO8Q~tSDvGJUcfN8ACZ51e21hh411vLwkal_dv."
)
APP_ID
=
os
.
environ
.
get
(
"MS_APP_ID"
,
"82109577-846a-442d-9320-776148d77442"
)
class
CosmosDBConfig
:
class
CosmosDBConfig
:
...
...
entities/json/notification.py
View file @
761d2bd9
...
@@ -11,9 +11,7 @@ from entities.json.camel_case_mixin import CamelCaseMixin, timestamp_factory
...
@@ -11,9 +11,7 @@ from entities.json.camel_case_mixin import CamelCaseMixin, timestamp_factory
class
NotificationUrl
(
CamelCaseMixin
):
class
NotificationUrl
(
CamelCaseMixin
):
""" Notifiction URL """
""" Notifiction URL """
title
:
Optional
[
str
]
title
:
Optional
[
str
]
link
:
Optional
[
str
]
=
field
(
metadata
=
dict
(
link
:
Optional
[
str
]
validate
=
marshmallow
.
validate
.
URL
()
))
@dataclass
@dataclass
...
...
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