Skip to content

Commit

Permalink
client: set_is_public query bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaume committed Dec 8, 2021
1 parent 09fb0fa commit e2b29cd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mpcontribs-client/mpcontribs/client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1330,6 +1330,8 @@ def _set_is_public(
if not self.project and (not query or "project" not in query):
return {"error": "initialize client with project, or include project in query!"}

query = query or {}

if self.project:
query["project"] = self.project

Expand Down

0 comments on commit e2b29cd

Please sign in to comment.