mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 14:52: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:
|
try:
|
||||||
acc = task.wait(30)
|
acc = task.wait(30)
|
||||||
except (celery.exceptions.TimeoutError, DocumentRetrievalError):
|
except (celery.exceptions.TimeoutError, DocumentRetrievalError):
|
||||||
acc = EVEAccount.objects.get(pk=userid)
|
acc = EVEAccount.objects.get(pk=self.object.pk)
|
||||||
ret = []
|
ret = []
|
||||||
if acc:
|
if acc:
|
||||||
ret = [acc]
|
ret = [acc]
|
||||||
|
|||||||
Reference in New Issue
Block a user