fix errors with redis
This commit is contained in:
parent
8e5b0d8afc
commit
3c72056f64
3 changed files with 4 additions and 2 deletions
|
@ -56,7 +56,7 @@ class Hoster(ABC):
|
|||
state = session_data.setdefault('state', 'logged_out')
|
||||
|
||||
if state == 'checking':
|
||||
task = request_access_token.AsyncResult(id=session_data.get('checking_progress_id'))
|
||||
task = request_access_token.AsyncResult(task_id=session_data.get('checking_progress_id'))
|
||||
self._handle_checking_task(request, task, session_data)
|
||||
state = session_data['state']
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ class GitlabHoster(Hoster):
|
|||
oauth_csrf_token = get_random_string(42, string.ascii_letters+string.digits)
|
||||
self._get_session_data(request)['oauth_csrf_token'] = oauth_csrf_token
|
||||
|
||||
callback_uri = self._get_callback_uri(request)
|
||||
callback_uri = self._get_callback_uri(request).replace('://localhost:8000', 's://33c3.c3nav.de')
|
||||
self._get_session_data(request)['callback_uri'] = callback_uri
|
||||
|
||||
return self.get_endpoint('/oauth/authorize?%s' % urlencode((
|
||||
|
|
2
src/requirements/redis.txt
Normal file
2
src/requirements/redis.txt
Normal file
|
@ -0,0 +1,2 @@
|
|||
django-redis>=4.1,<4.2
|
||||
redis>=2.10,<2.11
|
Loading…
Add table
Add a link
Reference in a new issue