Fix missing variable

This commit is contained in:
Ramon Wenger 2022-05-16 22:36:00 +02:00
parent ad34cf50cf
commit 5c944c09db
1 changed files with 1 additions and 1 deletions

View File

@ -367,7 +367,7 @@ class License(models.Model):
if not is_aware(expiry_date):
expiry_date = make_aware(expiry_date)
return expiry_date >= now >= expiry_date - timedelta(days=MYSKILLBOX_LICENSES[isbn]['duration'])
return expiry_date >= now >= expiry_date - timedelta(days=licenses[isbn]['duration'])
def __str__(self):
return f'License for role: {self.for_role}'