Skip to content

Commit dbee3ab

Browse files
committed
Added missing self + message for future self
1 parent 369fb89 commit dbee3ab

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

omnipath_server/service/_legacy.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1185,7 +1185,7 @@ def _clean_args(self, args: dict, query_type: QUERY_TYPES) -> dict:
11851185
return args
11861186

11871187

1188-
def _ensure_type(val: Any, name: str, query_type: QUERY_TYPES) -> Any:
1188+
def _ensure_type(self, val: Any, name: str, query_type: QUERY_TYPES) -> Any:
11891189

11901190
typ = self.query_param[query_type].get('arg_types', {}).get(name)
11911191

@@ -2230,7 +2230,7 @@ def interactions(
22302230

22312231
organisms = organisms or {9606}
22322232
args = locals()
2233-
args = self._clean_args(args)
2233+
args = self._clean_args(args, 'interactions')
22342234
args = self._array_args(args, 'interactions')
22352235

22362236
args = self._interactions_defaults(args)

scripts/r-legacy-server-tests.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ ARGS <- list(
5454
'no',
5555
'yes'
5656
),
57-
evidences = c(
57+
evidences = c( # TODO: fix handling of boolean/yes/no, etc
58+
# We should make the service handle array with single values as values
5859
FALSE,
5960
TRUE
6061
),

0 commit comments

Comments
 (0)