Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
holi-search-integration
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Operate
Terraform modules
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
app
holi-search-integration
Commits
edc2a645
Commit
edc2a645
authored
3 months ago
by
Daniel Bimschas
Browse files
Options
Downloads
Patches
Plain Diff
HOLI-10725: fix event parsing
parent
7857a0a9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
events.py
+18
-18
18 additions, 18 deletions
events.py
with
18 additions
and
18 deletions
events.py
+
18
−
18
View file @
edc2a645
...
...
@@ -31,13 +31,13 @@ class UserPayload:
location
:
str
def
__init__
(
self
,
data
:
dict
):
self
.
id
=
data
[
"
user
"
]
[
"
id
"
]
self
.
name
=
data
[
"
user
"
]
[
"
name
"
]
self
.
email
=
data
[
"
user
"
]
[
"
email
"
]
self
.
identity
=
data
[
"
user
"
]
[
"
identity
"
]
self
.
avatar
=
data
[
"
user
"
]
[
"
avatar
"
]
self
.
about_me
=
data
[
"
user
"
]
[
"
aboutMe
"
]
self
.
location
=
data
[
"
user
"
]
[
"
location
"
]
self
.
id
=
data
[
"
user
"
]
.
get
(
"
id
"
)
self
.
name
=
data
[
"
user
"
]
.
get
(
"
name
"
)
self
.
email
=
data
[
"
user
"
]
.
get
(
"
email
"
)
self
.
identity
=
data
[
"
user
"
]
.
get
(
"
identity
"
)
self
.
avatar
=
data
[
"
user
"
]
.
get
(
"
avatar
"
)
self
.
about_me
=
data
[
"
user
"
]
.
get
(
"
aboutMe
"
)
self
.
location
=
data
[
"
user
"
]
.
get
(
"
location
"
)
@dataclass
...
...
@@ -101,20 +101,20 @@ class SpacePayload:
location_lat_lng
:
LatLng
def
__init__
(
self
,
data
:
dict
):
self
.
id
=
data
[
"
space
"
]
[
"
id
"
]
self
.
name
=
data
[
"
space
"
]
[
"
name
"
]
self
.
slug
=
data
[
"
space
"
]
[
"
slug
"
]
self
.
avatar
=
data
[
"
space
"
]
[
"
avatar
"
]
self
.
avatar_default_color
=
data
[
"
space
"
]
[
"
avatarDefaultColor
"
]
self
.
description
=
data
[
"
space
"
]
[
"
description
"
]
self
.
location
=
data
[
"
space
"
]
[
"
location
"
]
self
.
id
=
data
[
"
space
"
]
.
get
(
"
id
"
)
self
.
name
=
data
[
"
space
"
]
.
get
(
"
name
"
)
self
.
slug
=
data
[
"
space
"
]
.
get
(
"
slug
"
)
self
.
avatar
=
data
[
"
space
"
]
.
get
(
"
avatar
"
)
self
.
avatar_default_color
=
data
[
"
space
"
]
.
get
(
"
avatarDefaultColor
"
)
self
.
description
=
data
[
"
space
"
]
.
get
(
"
description
"
)
self
.
location
=
data
[
"
space
"
]
.
get
(
"
location
"
)
contains_lat_lng
=
(
data
[
"
space
"
]
[
"
locationLatLng
"
]
is
not
None
and
data
[
"
space
"
]
[
"
locationLatLng
"
]
[
"
latitude
"
]
is
not
None
and
data
[
"
space
"
]
[
"
locationLatLng
"
]
[
"
longitude
"
]
is
not
None
data
[
"
space
"
]
.
get
(
"
locationLatLng
"
)
is
not
None
and
data
[
"
space
"
]
.
get
(
"
locationLatLng
"
)
[
"
latitude
"
]
is
not
None
and
data
[
"
space
"
]
.
get
(
"
locationLatLng
"
)
[
"
longitude
"
]
is
not
None
)
self
.
location_lat_lng
=
(
LatLng
(
data
[
"
space
"
]
[
"
locationLatLng
"
]
.
get
(
"
latitude
"
),
data
[
"
space
"
]
[
"
locationLatLng
"
]
.
get
(
"
longitude
"
))
LatLng
(
data
[
"
space
"
]
.
get
(
"
locationLatLng
"
)
.
get
(
"
latitude
"
),
data
[
"
space
"
]
.
get
(
"
locationLatLng
"
)
.
get
(
"
longitude
"
))
if
contains_lat_lng
else
None
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment