Skip to content

Commit

Permalink
Fixes context manager issue
Browse files Browse the repository at this point in the history
  • Loading branch information
dbernstein committed Dec 19, 2024
1 parent 2bf2cb0 commit 05e642e
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/palace/manager/sqlalchemy/model/licensing.py
Original file line number Diff line number Diff line change
Expand Up @@ -1656,13 +1656,6 @@ def delete(self):
pools = list(self.license_pools)
_db.delete(self)

# TODO: We need to explicitly commit here so that
# LicensePool.delivery_mechanisms gets updated. It would be
# better if we didn't have to do this, but I haven't been able
# to get LicensePool.delivery_mechanisms to notice that it's
# out of date.
_db.commit()

# The deletion of a LicensePoolDeliveryMechanism might affect
# the open-access status of its associated LicensePools.
for pool in pools:
Expand Down

0 comments on commit 05e642e

Please sign in to comment.