Skip to content

Commit

Permalink
fixes tsts
Browse files Browse the repository at this point in the history
  • Loading branch information
pcrespov committed Dec 10, 2024
1 parent d1fd1d0 commit cee4f33
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,19 +52,20 @@
"description": "description",
"thumbnail": "thumbnail",
"accessRights": "access_rights",
"inclusionRules": "inclusion_rules",
}


def _convert_groups_db_to_schema(
db_row: RowProxy, *, prefix: str | None = "", **kwargs
) -> dict:
# NOTE: Deprecated. has to be replaced with
converted_dict = {
k: db_row[f"{prefix}{v}"]
for k, v in _GROUPS_SCHEMA_TO_DB.items()
if f"{prefix}{v}" in db_row
}
converted_dict.update(**kwargs)
converted_dict["inclusionRules"] = {}
return converted_dict


Expand Down

0 comments on commit cee4f33

Please sign in to comment.