mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-24 14:06:36 +00:00
fixup: use the class instead of an instance
This commit is contained in:
parent
5e82dd212a
commit
51adb65751
@ -216,7 +216,7 @@ class Task(models.Model):
|
||||
"""
|
||||
Check if the locked_by process is still running.
|
||||
"""
|
||||
if self in self.objects.locked(timezone.now()) and self.locked_by:
|
||||
if self in Task.objects.locked(timezone.now()) and self.locked_by:
|
||||
pid, nodename = self.locked_by.split('/', 1)
|
||||
# locked by a process on this node?
|
||||
if nodename != self.nodename:
|
||||
|
Loading…
Reference in New Issue
Block a user