Skip to content

Commit

Permalink
OpenConceptLab/ocl_issues#1729 | Refactoring services | creating dir …
Browse files Browse the repository at this point in the history
…structure
  • Loading branch information
snyaggarwal committed Jan 10, 2024
1 parent 62d5ae6 commit bcd9dc3
Show file tree
Hide file tree
Showing 34 changed files with 956 additions and 909 deletions.
2 changes: 1 addition & 1 deletion core/common/authentication.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class OCLAuthentication(BaseAuthentication):
3. Uses Auth Service to determine auth class Django/OIDC
"""
def get_auth_class(self, request):
from core.common.services import AuthService
from core.services.auth.core import AuthService
if AuthService.is_valid_django_token(request) or get(settings, 'TEST_MODE', False):
klass = TokenAuthentication
else:
Expand Down
2 changes: 1 addition & 1 deletion core/common/backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def get_auth_backend(self, request=None):
if get(self, '_authentication_backend'):
return get(self, '_authentication_backend')

from core.common.services import AuthService
from core.services.auth.core import AuthService
if AuthService.is_valid_django_token(request) or get(settings, 'TEST_MODE', False):
klass = ModelBackend
else:
Expand Down
3 changes: 1 addition & 2 deletions core/common/management/commands/celery_beat_healthcheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
from django.conf import settings
from django.core.management import BaseCommand

from core.common.services import RedisService
from core.users.models import UserProfile
from core.services.storages.redis import RedisService


class Command(BaseCommand):
Expand Down
Loading

0 comments on commit bcd9dc3

Please sign in to comment.