Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
noc
noc
Commits
b1f955a1
Commit
b1f955a1
authored
Apr 23, 2020
by
Andrey Vertiprahov
Browse files
Fix CH Dictionary split data to chunk.
parent
31981638
Pipeline
#22411
passed with stages
in 25 minutes and 7 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
main/models/datasourcecache.py
View file @
b1f955a1
...
...
@@ -62,7 +62,7 @@ class DataSourceCache(Document):
name
=
d
.
get
(
"next_name"
,
None
)
# Finally, decode result
# avoid string catenation whenever possible
return
cls
.
decode
(
""
.
join
(
data
)
if
len
(
data
)
>
1
else
data
[
0
])
return
cls
.
decode
(
b
""
.
join
(
data
)
if
len
(
data
)
>
1
else
data
[
0
])
@
classmethod
def
set_data
(
cls
,
name
,
data
,
ttl
):
...
...
Dmitry Volodin
@dv
mentioned in commit
7ffa40d5
·
Apr 23, 2020
mentioned in commit
7ffa40d5
mentioned in commit 7ffa40d5d84a78ab6c61af31cf6d2ea35c063561
Toggle commit list
Andrey Vertiprahov
@aversant
mentioned in merge request
!3521 (merged)
·
Apr 23, 2020
mentioned in merge request
!3521 (merged)
mentioned in merge request !3521
Toggle commit list
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment