Skip to content

Commit

Permalink
fix: Add default Param for createRelSkelFromKey (#1304)
Browse files Browse the repository at this point in the history
Restore old behaviour
  • Loading branch information
ArneGudermann authored Oct 28, 2024
1 parent cc18a73 commit 909f176
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/viur/core/bones/relational.py
Original file line number Diff line number Diff line change
Expand Up @@ -1081,7 +1081,7 @@ def get_values(skel_, values_cache):

return result

def createRelSkelFromKey(self, key: db.Key, rel: dict | None) -> RelDict:
def createRelSkelFromKey(self, key: db.Key, rel: dict | None = None) -> RelDict:
return self.relskels_from_keys([(key, rel)])[0]

def relskels_from_keys(self, key_rel_list: list[tuple[db.Key, dict | None]]) -> list[RelDict] | None:
Expand Down

0 comments on commit 909f176

Please sign in to comment.