mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-13 22:32:15 +00:00
Fixes #292, Use self.object instead of the userid param that has been removed
This commit is contained in:
@@ -123,7 +123,7 @@ class EVEAPIRefreshView(LoginRequiredMixin, SingleObjectMixin, View):
|
||||
try:
|
||||
acc = task.wait(30)
|
||||
except (celery.exceptions.TimeoutError, DocumentRetrievalError):
|
||||
acc = EVEAccount.objects.get(pk=userid)
|
||||
acc = EVEAccount.objects.get(pk=self.object.pk)
|
||||
ret = []
|
||||
if acc:
|
||||
ret = [acc]
|
||||
|
||||
Reference in New Issue
Block a user