Skip to content

Commit

Permalink
Actualizo models.py
Browse files Browse the repository at this point in the history
  • Loading branch information
CandelAbregu committed Jun 5, 2024
1 parent 4fc3fd5 commit ad8b26f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def update_provider(self, provider_data):
self.name = provider_data.get("name", "") or self.name
self.email = provider_data.get("email", "") or self.email
self.address = provider_data.get("address", "") or self.address
refactor/D101


try:
self.save()
Expand All @@ -208,7 +208,7 @@ def update_provider(self, provider_data):

self.save()
return True, None
main


def validate_product(data):
"""
Expand Down Expand Up @@ -603,7 +603,7 @@ def update_medicine(self, medicine_data):
self.name = medicine_data.get("name", "") or self.name
self.description = medicine_data.get("description", "") or self.description
self.dose = medicine_data.get("dose", "") or self.dose
refactor/D101


try:
self.save()
Expand Down

0 comments on commit ad8b26f

Please sign in to comment.