Skip to content

Commit

Permalink
chore: turn environment utils into custom
Browse files Browse the repository at this point in the history
  • Loading branch information
vncsna committed Feb 20, 2024
1 parent 51eeab6 commit b97883b
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bd_api/apps/account/signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

from bd_api.apps.account.models import Account
from bd_api.apps.account.token import token_generator
from bd_api.utils import get_frontend_url
from bd_api.custom.environment import get_frontend_url


def send_activation_email(account: Account):
Expand Down
2 changes: 1 addition & 1 deletion bd_api/apps/account/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

from bd_api.apps.account.signals import send_activation_email
from bd_api.apps.account.token import token_generator
from bd_api.utils import get_frontend_url
from bd_api.custom.environment import get_frontend_url


class AccountActivateView(View):
Expand Down
2 changes: 1 addition & 1 deletion bd_api/apps/api/v1/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

from bd_api.apps.api.v1.models import Dataset, RawDataSource, Table
from bd_api.custom.client import Messenger, get_gbq_client, get_gcs_client
from bd_api.utils import production_task
from bd_api.custom.environment import production_task

logger = logger.bind(module="api.v1")

Expand Down
2 changes: 1 addition & 1 deletion bd_api/apps/core/management/commands/loadfixture.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from loguru import logger
from modeltranslation.management.commands.loaddata import Command as LoadDataCommand

from bd_api.utils import is_prd
from bd_api.custom.environment import is_prd

IS_SQLITE = "sqlite" in settings.DATABASES.get("default", {}).get("ENGINE")
IS_POSTGRES = "postgres" in settings.DATABASES.get("default", {}).get("ENGINE")
Expand Down
2 changes: 1 addition & 1 deletion bd_api/apps/core/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from bd_api.apps.core.models import Metadata
from bd_api.custom.client import BetterStackClient
from bd_api.utils import production_task
from bd_api.custom.environment import production_task


@periodic_task(crontab(day="1", hour="3", minute="0"))
Expand Down
File renamed without changes.

0 comments on commit b97883b

Please sign in to comment.