From e730d86ed30229ef0e016856b24ca453d34fe573 Mon Sep 17 00:00:00 2001 From: Michael Ziegler Date: Mon, 2 Jan 2012 21:17:40 +0100 Subject: [PATCH] filter MumbleUsers by the current servers when detecting stale accounts --- pyweb/mumble/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyweb/mumble/models.py b/pyweb/mumble/models.py index fc96d1e..ec93119 100644 --- a/pyweb/mumble/models.py +++ b/pyweb/mumble/models.py @@ -483,7 +483,7 @@ class Mumble( models.Model ): signals.pre_delete.disconnect( MumbleUser.pre_delete_listener, sender=MumbleUser ) for uid in unseen_ids: - mu = MumbleUser.objects.get( mumbleid=uid ) + mu = MumbleUser.objects.get( server=self, mumbleid=uid ) if verbose: print 'Found stale MumbleUser "%s".' % mu.name mu.delete()