mirror of
https://github.com/meeb/tubesync.git
synced 2025-04-13 08:51:42 +00:00
Remove the hard-coded class name
This commit is contained in:
parent
464ac73396
commit
bcb7432174
@ -216,7 +216,7 @@ class Task(models.Model):
|
||||
"""
|
||||
Check if the locked_by process is still running.
|
||||
"""
|
||||
if self in Task.objects.locked(timezone.now()) and self.locked_by:
|
||||
if self in self.__class__.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…
x
Reference in New Issue
Block a user