Commit c437c7f9 by x Committed by Bach Dániel

one: scheduled_vm_cleanup hotfix

parent a3da9b84
...@@ -33,7 +33,7 @@ class Job(HourlyJob): ...@@ -33,7 +33,7 @@ class Job(HourlyJob):
translation.activate(i.owner.person_set.get().language) translation.activate(i.owner.person_set.get().language)
except: except:
pass pass
print u'%s delete: %s' % (i.name, i.time_of_delete) # print u'%s delete: %s' % (i.name, i.time_of_delete)
delete = i.time_of_delete.replace(minute=0, second=0, microsecond=0) delete = i.time_of_delete.replace(minute=0, second=0, microsecond=0)
continue continue
if i.time_of_delete < now: if i.time_of_delete < now:
...@@ -52,7 +52,7 @@ class Job(HourlyJob): ...@@ -52,7 +52,7 @@ class Job(HourlyJob):
translation.activate(i.owner.person_set.get().language) translation.activate(i.owner.person_set.get().language)
except: except:
pass pass
print u'%s suspend: %s' % (i.name, i.time_of_suspend) # print u'%s suspend: %s' % (i.name, i.time_of_suspend)
suspend = i.time_of_suspend.replace(minute=0, second=0, microsecond=0) suspend = i.time_of_suspend.replace(minute=0, second=0, microsecond=0)
if i.time_of_suspend < now: if i.time_of_suspend < now:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment