Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
f-interop-contributors
utils
Commits
b1370dc1
Commit
b1370dc1
authored
Oct 24, 2017
by
Federico Sismondi
Browse files
get api version from json when using Message.from_json(json) message builder
parent
7d1e46b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
messages.py
View file @
b1370dc1
...
...
@@ -117,7 +117,8 @@ class Message:
self
.
_msg_data
.
update
(
kwargs
)
# add API's version
self
.
_msg_data
[
"_api_version"
]
=
API_VERSION
if
not
"_api_version"
in
self
.
_msg_data
:
self
.
_msg_data
[
"_api_version"
]
=
API_VERSION
# add values as objects attributes
for
key
in
self
.
_msg_data
:
...
...
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