Compare commits

..

No commits in common. "f0801b368340626a5272ab766c73ef21f93f158d" and "dd7fdc396c0e4c4d8edd51f32d5517460119b8a2" have entirely different histories.

View File

@ -67,7 +67,6 @@ class EgonGmlBuilder:
""" """
intervention = None intervention = None
gml = None gml = None
_PAYMENT_FALLBACK_DATE = ""
def __init__(self, intervention): def __init__(self, intervention):
self.intervention = intervention self.intervention = intervention
@ -165,10 +164,7 @@ class EgonGmlBuilder:
payment_date = None payment_date = None
if payment is not None: if payment is not None:
payment_date = payment.due_on payment_date = payment.due_on
if payment_date is not None:
payment_date = payment_date.strftime(DEFAULT_DATE_FORMAT) payment_date = payment_date.strftime(DEFAULT_DATE_FORMAT)
else:
payment_date = self._PAYMENT_FALLBACK_DATE
cons_office = self.intervention.responsible.conservation_office cons_office = self.intervention.responsible.conservation_office
reg_office = self.intervention.responsible.registration_office reg_office = self.intervention.responsible.registration_office