Skip to content

Commit

Permalink
Refractor: Malos olores de codacy ; 26
Browse files Browse the repository at this point in the history
Se han arreglado los malos olores dados por codacy
  • Loading branch information
jesgamlar committed Jan 5, 2022
1 parent 924259c commit d8cea0f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion decide/authentication/urls.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from django.shortcuts import redirect
from django.urls import include, path
from rest_framework.authtoken.views import obtain_auth_token
from django.views.generic import TemplateView
Expand Down
2 changes: 1 addition & 1 deletion decide/authentication/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def post(self, request):
def redirection(request):

user = request.user
session_token, created = Token.objects.get_or_create(user=user)
session_token = Token.objects.get_or_create(user=user)[0]
host = request.get_host()
scheme = request.is_secure() and "https" or "http"
base_url = scheme+'://'+request.get_host()
Expand Down

0 comments on commit d8cea0f

Please sign in to comment.