mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2026-02-09 16:46:20 +01:00
Specify short names for service tasks (#682)
This commit is contained in:
@@ -47,7 +47,7 @@ class SmfTasks:
|
||||
SmfUser.objects.all().delete()
|
||||
|
||||
@staticmethod
|
||||
@app.task(bind=True)
|
||||
@app.task(bind=True, name="smf.update_groups")
|
||||
def update_groups(self, pk):
|
||||
user = User.objects.get(pk=pk)
|
||||
logger.debug("Updating smf groups for user %s" % user)
|
||||
@@ -68,7 +68,7 @@ class SmfTasks:
|
||||
logger.debug("User does not have an smf account")
|
||||
|
||||
@staticmethod
|
||||
@app.task
|
||||
@app.task(name="smf.update_all_groups")
|
||||
def update_all_groups():
|
||||
logger.debug("Updating ALL smf groups")
|
||||
for user in SmfUser.objects.exclude(username__exact=''):
|
||||
|
||||
Reference in New Issue
Block a user