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
c72b1baf
Commit
c72b1baf
authored
Jan 26, 2023
by
Oleksandr Barabash
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ttl changed to contentTTL cause it intersect with the cosmos built in params
parent
718a89a3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
notification.py
entities/json/notification.py
+2
-2
pa_message.py
entities/json/pa_message.py
+1
-1
No files found.
entities/json/notification.py
View file @
c72b1baf
...
@@ -25,7 +25,7 @@ class Notification(CamelCaseMixin):
...
@@ -25,7 +25,7 @@ class Notification(CamelCaseMixin):
title
:
Optional
[
str
]
=
field
(
default
=
None
)
title
:
Optional
[
str
]
=
field
(
default
=
None
)
url
:
Optional
[
NotificationUrl
]
=
field
(
default_factory
=
NotificationUrl
)
url
:
Optional
[
NotificationUrl
]
=
field
(
default_factory
=
NotificationUrl
)
acknowledge
:
Optional
[
bool
]
=
field
(
default
=
False
)
acknowledge
:
Optional
[
bool
]
=
field
(
default
=
False
)
ttl
:
Optional
[
TTLRecord
]
=
field
(
default
=
None
)
contentTTL
:
Optional
[
TTLRecord
]
=
field
(
default
=
None
)
def
to_db
(
self
)
->
"NotificationCosmos"
:
def
to_db
(
self
)
->
"NotificationCosmos"
:
""" Create NotificationCosmos """
""" Create NotificationCosmos """
...
@@ -36,7 +36,7 @@ class Notification(CamelCaseMixin):
...
@@ -36,7 +36,7 @@ class Notification(CamelCaseMixin):
title
=
self
.
title
,
title
=
self
.
title
,
url
=
self
.
url
,
url
=
self
.
url
,
acknowledge
=
self
.
acknowledge
,
acknowledge
=
self
.
acknowledge
,
ttl
=
self
.
ttl
)
contentTTL
=
self
.
contentTTL
)
# noinspection PyDataclass
# noinspection PyDataclass
...
...
entities/json/pa_message.py
View file @
c72b1baf
...
@@ -13,4 +13,4 @@ class PAMessage(CamelCaseMixin):
...
@@ -13,4 +13,4 @@ class PAMessage(CamelCaseMixin):
conversation_id
:
str
conversation_id
:
str
tenant_id
:
str
tenant_id
:
str
card
:
Optional
[
Any
]
=
None
card
:
Optional
[
Any
]
=
None
ttl
:
Optional
[
TTLRecord
]
=
None
contentTTL
:
Optional
[
TTLRecord
]
=
None
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