Skip to content

Commit

Permalink
Repair library update when multiple frameworks are already loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
monsieurswag committed May 29, 2024
1 parent 915f6f5 commit 2276456
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,7 @@ def update_library(self) -> Union[str, None]:
del framework_dict["requirement_nodes"]

new_framework, _ = Framework.objects.update_or_create(
urn=self.new_framework["urn"],
defaults=framework_dict,
create_defaults={
**referential_object_dict,
Expand Down

0 comments on commit 2276456

Please sign in to comment.