Periodic checks of character ownership hashes.

Fix migration naming from merge.
This commit is contained in:
Adarnof
2017-09-17 02:31:46 -04:00
parent 02f2968ee5
commit 5ce5f37867
8 changed files with 67 additions and 26 deletions

View File

@@ -6,7 +6,6 @@ from alliance_auth.celeryapp import app
from django.conf import settings
from django.contrib.auth.models import User
from django.core.exceptions import ObjectDoesNotExist
from notifications import notify
from services.modules.discord.manager import DiscordOAuthManager, DiscordApiBackoff
from .models import DiscordUser
@@ -59,7 +58,6 @@ class DiscordTasks:
@staticmethod
@app.task(bind=True, name='discord.update_groups')
@only_one
def update_groups(task_self, pk):
user = User.objects.get(pk=pk)
logger.debug("Updating discord groups for user %s" % user)