Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
model_server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Christopher Randolph Rhodes
model_server
Commits
39e79145
Commit
39e79145
authored
9 months ago
by
Christopher Randolph Rhodes
Browse files
Options
Downloads
Patches
Plain Diff
Drop none-valued query parameters by default
parent
f7a78116
No related branches found
No related tags found
2 merge requests
!50
Release 2024.06.03
,
!46
Issue0038
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
model_server/clients/imagej/adapter.py
+1
-1
1 addition, 1 deletion
model_server/clients/imagej/adapter.py
with
1 addition
and
1 deletion
model_server/clients/imagej/adapter.py
+
1
−
1
View file @
39e79145
...
@@ -27,7 +27,7 @@ def hit_endpoint(method, endpoint, params=None, body=None, drop_none=True):
...
@@ -27,7 +27,7 @@ def hit_endpoint(method, endpoint, params=None, body=None, drop_none=True):
if
not
method
in
[
'
GET
'
,
'
PUT
'
]:
if
not
method
in
[
'
GET
'
,
'
PUT
'
]:
raise
Exception
(
'
Can only handle GET and PUT requests
'
)
raise
Exception
(
'
Can only handle GET and PUT requests
'
)
k_pop
=
[]
k_pop
=
[]
if
drop_none
:
if
drop_none
and
params
is
not
None
:
for
k
,
v
in
params
.
items
():
for
k
,
v
in
params
.
items
():
if
v
is
None
:
if
v
is
None
:
k_pop
.
append
(
k
)
k_pop
.
append
(
k
)
...
...
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