mirror of
https://github.com/ansible/awx.git
synced 2024-11-01 08:21:15 +03:00
flake8
This commit is contained in:
parent
bd61261454
commit
41de9c9f9f
@ -92,13 +92,11 @@ class Command(BaseCommand):
|
|||||||
aged_ts_append = aged_date.strftime('%Y-%m-%dT%H:%M:%S.%f')
|
aged_ts_append = aged_date.strftime('%Y-%m-%dT%H:%M:%S.%f')
|
||||||
else:
|
else:
|
||||||
aged_ts_append = aged_date.isoformat() + name_append
|
aged_ts_append = aged_date.isoformat() + name_append
|
||||||
setattr(instance, name_field, name_prefix + aged_ts_append)
|
setattr(instance, name_field, name_prefix + aged_ts_append)
|
||||||
instance.save()
|
instance.save()
|
||||||
#print("Aged %s" % getattr(instance, name_field))
|
#print("Aged %s" % getattr(instance, name_field))
|
||||||
n_aged_items += 1
|
n_aged_items += 1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return n_aged_items
|
return n_aged_items
|
||||||
|
|
||||||
@transaction.atomic
|
@transaction.atomic
|
||||||
|
Loading…
Reference in New Issue
Block a user