mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-15 17:17:02 +02:00
Change years to int
Temp changes because I cant pass in months specifically
This commit is contained in:
parent
7b878c2195
commit
8700a05fbf
2 changed files with 43 additions and 43 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue