Skip to content

Commit

Permalink
CP-76 FIX mobile requests bugs
Browse files Browse the repository at this point in the history
- Increase delay between calls to avoid transaction issues
- Remove "S" state in children which is useless and brought the bug
- Other small improvements
  • Loading branch information
ecino committed Jun 21, 2022
1 parent b3500fc commit aa33308
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions sms_939/models/sms_child_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,6 @@ def _take_child_from_website(self):
self.write({"child_id": child.id, "state": "child_reserved"})
child.hold_id.sms_request_id = self.id
child.remove_from_wordpress()
if self.type == "sms":
child.write({"state": "S"})

child.hold_id.with_delay().update_expiration_date(
fields.Datetime.to_string(datetime.now() + relativedelta(days=1))
Expand Down

0 comments on commit aa33308

Please sign in to comment.