Browse Source

filter MumbleUsers by the current servers when detecting stale accounts

Natenom/support-murmur-13-1446181288462
Michael Ziegler 13 years ago
parent
commit
e730d86ed3
  1. 2
      pyweb/mumble/models.py

2
pyweb/mumble/models.py

@ -483,7 +483,7 @@ class Mumble( models.Model ):
signals.pre_delete.disconnect( MumbleUser.pre_delete_listener, sender=MumbleUser ) signals.pre_delete.disconnect( MumbleUser.pre_delete_listener, sender=MumbleUser )
for uid in unseen_ids: for uid in unseen_ids:
mu = MumbleUser.objects.get( mumbleid=uid )
mu = MumbleUser.objects.get( server=self, mumbleid=uid )
if verbose: if verbose:
print 'Found stale MumbleUser "%s".' % mu.name print 'Found stale MumbleUser "%s".' % mu.name
mu.delete() mu.delete()

Loading…
Cancel
Save