Compare commits

...

3 Commits

Author SHA1 Message Date
830d33b0c0 Merge pull request 'master' (#318) from master into Docker
Reviewed-on: SGD-Nord/konova#318
2023-03-24 07:14:34 +01:00
e4a2a0f64e Merge pull request 'HOTFIX' (#317) from fix_public_report into master
Reviewed-on: SGD-Nord/konova#317
2023-03-24 07:14:13 +01:00
76a90e655a HOTFIX
* fixes bug where float numbers could not be used as input for e.g. buffer radius
    * supports
2023-03-24 07:13:15 +01:00

View File

@ -325,7 +325,8 @@ class Intervention(BaseObject,
is_ready (bool) : True|False
"""
now_date = timezone.now().date()
binding_date = self.legal.binding_date
# use current date as fallback if binding_date does not exist --> is_old_entry will fail as we want it for this case
binding_date = self.legal.binding_date or timezone.now().date()
is_old_entry = binding_date < LKOMPVZVO_PUBLISH_DATE
is_binding_date_ready = binding_date is not None and binding_date <= now_date
is_recorded = self.recorded is not None