Change years to int

Temp changes because I cant pass in months specifically
This commit is contained in:
zandercymatics 2024-02-07 16:02:57 -07:00
parent 7b878c2195
commit 8700a05fbf
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
2 changed files with 43 additions and 43 deletions

View file

@ -1174,7 +1174,7 @@ class DomainAdmin(ListHeaderAdmin):
logger.info(f"do_extend_expiration_date -> month length: {month_length}")
# TODO why cant I specify months
#obj.renew_domain(length=month_length, unit=epp.Unit.MONTH)
years = month_length/12
years = int(month_length/12)
if years >= 1:
obj.renew_domain(length=month_length/12)
else: