mirror of
https://github.com/django-q2/django-q2.git
synced 2026-09-29 07:08:11 +08:00
Removed superfluous return
This commit is contained in:
@@ -25,7 +25,6 @@ class Task(models.Model):
|
||||
def get_result(name):
|
||||
if Task.objects.filter(name=name).exists():
|
||||
return Task.objects.get(name=name).result
|
||||
return None
|
||||
|
||||
def time_taken(self):
|
||||
return (self.stopped - self.started).total_seconds()
|
||||
|
||||
Reference in New Issue
Block a user