Skip to content

Commit

Permalink
bugfix for flattening columns
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaume committed Aug 17, 2022
1 parent f5da212 commit 96e9772
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mpcontribs-client/mpcontribs/client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -911,7 +911,7 @@ def init_columns(self, columns: dict = None) -> dict:
if not self.project:
return {"error": "initialize client with project argument!"}

columns = flatten(columns, reducer="dot") or {}
columns = flatten(columns or {}, reducer="dot")

if len(columns) > MAX_COLUMNS:
return {"error": f"Number of columns larger than {MAX_COLUMNS}!"}
Expand Down

0 comments on commit 96e9772

Please sign in to comment.