Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ChEMBL
C
ChEMBL
Main Web Interface
Elasticsearch Proxy API
Commits
3e987a0f
Commit
3e987a0f
authored
Oct 01, 2021
by
David Mendez
Browse files
Make pylint happy
parent
76310699
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
app/blueprints/eubopen/search/controller.py
app/blueprints/eubopen/search/controller.py
+1
-1
app/cache/decorators.py
app/cache/decorators.py
+1
-2
No files found.
app/blueprints/eubopen/search/controller.py
View file @
3e987a0f
"""
Controller for handling the requests for the eubopen search
"""
from
flask
import
Blueprint
,
jsonify
,
request
from
flask
import
Blueprint
,
request
from
app.request_validation.decorators
import
validate_form_with
from
app.blueprints.eubopen.search
import
marshmallow_schemas
...
...
app/cache/decorators.py
View file @
3e987a0f
...
...
@@ -18,7 +18,6 @@ def return_if_cached_results(config):
def
wrap
(
func
):
@
wraps
(
func
)
def
wrapped_func
(
*
args
,
**
kwargs
):
cache_key_generator
=
config
[
'cache_key_generator'
]
base_cache_key
=
cache_key_generator
(
*
args
,
**
kwargs
)
...
...
@@ -40,4 +39,4 @@ def return_if_cached_results(config):
return
wrapped_func
return
wrap
\ No newline at end of file
return
wrap
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