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
nomad-lab
nomad-FAIR
Commits
3d17c42a
Commit
3d17c42a
authored
Aug 02, 2019
by
Markus Scheidgen
Browse files
Minor linting.
parent
65660927
Pipeline
#53085
passed with stages
in 17 minutes and 33 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nomad/cli/admin/admin.py
View file @
3d17c42a
...
...
@@ -50,7 +50,7 @@ def index(threads, dry):
entry
=
entry
.
to_dict
(
include_meta
=
True
)
entry
[
'_op_type'
]
=
'index'
yield
entry
if
dry
:
for
_
in
elastic_updates
():
pass
...
...
nomad/search.py
View file @
3d17c42a
...
...
@@ -32,7 +32,7 @@ path_analyzer = analyzer(
tokenizer
=
tokenizer
(
'path_tokenizer'
,
'pattern'
,
pattern
=
'/'
))
user_cache
=
dict
()
user_cache
:
Dict
[
str
,
Any
]
=
dict
()
"""
A cache for user popos used in the index. We will not retrieve names all the time.
This cache should be cleared, before larger re-index operations.
...
...
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