Skip to content

Commit

Permalink
minor bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
harikris001 committed Nov 12, 2024
1 parent 3db176c commit ead9d4d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions server/database.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import os
from dotenv import load_dotenv
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker

load_dotenv()

# DATABASE_URL = 'postgresql://postgres:hari2001@localhost:5432/jamit'
DATABASE_URL = os.environ.get("DATABASE_URL")

Expand Down
2 changes: 1 addition & 1 deletion server/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ shellingham==1.5.4
six==1.16.0
sniffio==1.3.1
SQLAlchemy==2.0.31
starlette==0.40.0
starlette==0.37.2
typer==0.12.3
typing_extensions==4.12.2
urllib3==2.2.2
Expand Down
3 changes: 3 additions & 0 deletions server/routes/song.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import cloudinary
import cloudinary.uploader
import os
from dotenv import load_dotenv
import uuid
from middleware.auth_middleware import auth_middleware
from sqlalchemy.orm import joinedload
Expand All @@ -13,6 +14,8 @@
from pydantics_schema.favourite_song import FavouriteSong
router = APIRouter()

load_dotenv()

@router.post('/upload',status_code=201)
def upload_song(
song: UploadFile = File(...),
Expand Down

0 comments on commit ead9d4d

Please sign in to comment.