Merge pull request 'HOTFIX' (#353) from master into Docker

Reviewed-on: SGD-Nord/konova#353
This commit is contained in:
mpeltriaux 2023-10-26 07:23:21 +02:00
commit accccb93c2

View File

@ -490,7 +490,11 @@ class Compensation(AbstractCompensation, CEFMixin, CoherenceMixin, PikMixin):
if self.is_recorded: if self.is_recorded:
retval = COMPENSATION_LANIS_LAYER_NAME_RECORDED retval = COMPENSATION_LANIS_LAYER_NAME_RECORDED
else: else:
is_old_entry = self.intervention.legal.binding_date < LKOMPVZVO_PUBLISH_DATE try:
is_old_entry = self.intervention.legal.binding_date < LKOMPVZVO_PUBLISH_DATE
except TypeError:
is_old_entry = True
if is_old_entry: if is_old_entry:
retval = COMPENSATION_LANIS_LAYER_NAME_UNRECORDED_OLD_ENTRY retval = COMPENSATION_LANIS_LAYER_NAME_UNRECORDED_OLD_ENTRY
else: else: