Skip to content

Commit

Permalink
(backend): Fixed imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Imanuel Febie committed Nov 14, 2024
1 parent 41b84a5 commit 3058799
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion langkah-api/langkah/lib/config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
load_dotenv(dotenv_path)


SUPABASE_URL = config("SUPABASE_URL")
SUPABASE_PROJECT_URL = config("SUPABASE_PROJECT_URL")
SUPABASE_DB_URL = config("SUPABASE_DB_URL")
SUPABASE_KEY = config("SUPABASE_KEY")
4 changes: 2 additions & 2 deletions langkah-api/langkah/lib/dependencies/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

from sqlalchemy.ext.asyncio import AsyncSession, async_sessionmaker, create_async_engine

from o4a.lib.config.settings import pg_settings
from langkah.lib.config.settings import SUPABASE_DB_URL

DB_URL = f"postgresql+asyncpg://{pg_settings.postgres_user}:{pg_settings.postgres_password}@{pg_settings.postgres_host}:{pg_settings.postgres_port}/{pg_settings.postgres_db}"
DB_URL = f"{SUPABASE_DB_URL}"

engine = create_async_engine(DB_URL)
session_maker = async_sessionmaker(engine, expire_on_commit=False)
Expand Down
2 changes: 1 addition & 1 deletion langkah-api/langkah/types/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import Mapped, mapped_column, relationship

from o4a.types.enums import ActivityLevel, Goal, Sex
from langkah.types.enums import ActivityLevel, Goal, Sex

Base = declarative_base()

Expand Down

0 comments on commit 3058799

Please sign in to comment.