forked from shaba/openuds
Fixes from merge
This commit is contained in:
parent
8867ef7036
commit
34028b99e7
@ -72,7 +72,7 @@ logger = logging.getLogger(__name__)
|
||||
class DeployedService(UUIDModel, TaggingMixin):
|
||||
"""
|
||||
A deployed service is the Service produced element that is assigned finally to an user (i.e. a Virtual Machine, etc..)
|
||||
'''
|
||||
"""
|
||||
# pylint: disable=model-missing-unicode
|
||||
name = models.CharField(max_length=128, default='')
|
||||
short_name = models.CharField(max_length=32, default='')
|
||||
|
@ -164,7 +164,7 @@ class TicketStore(UUIDModel):
|
||||
for v in TicketStore.objects.all():
|
||||
if now > v.stamp + timedelta(seconds=v.validity):
|
||||
v.delete()
|
||||
cleanSince = now - datetime.timedelta(seconds=TicketStore.MAX_VALIDITY)
|
||||
cleanSince = now - datetime.timedelta(seconds=TicketStore.MAX_VALIDITY)
|
||||
number = TicketStore.objects.filter(stamp__lt=cleanSince).delete()
|
||||
|
||||
def __unicode__(self):
|
||||
|
Loading…
Reference in New Issue
Block a user