We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7cef13e commit 6575465Copy full SHA for 6575465
core/metadata_layer.py
@@ -1034,8 +1034,10 @@ def apply(
1034
]
1035
for license in old_licenses:
1036
if license not in new_licenses:
1037
+ # In case a license is removed from the feed we need to set it to be unavailable so that it's not used for loans or statistics.
1038
+ license.status = LicenseStatus.unavailable
1039
self.log.warning(
- f"License {license.identifier} has been removed from feed."
1040
+ f"License {license.identifier} has been removed from feed and set to be unavailable"
1041
)
1042
changed_availability = pool.update_availability_from_licenses(
1043
as_of=self.last_checked,
0 commit comments