Skip to content

Commit

Permalink
fix: utf-8
Browse files Browse the repository at this point in the history
  • Loading branch information
rimgosu committed Feb 23, 2024
1 parent 19eb940 commit b0e0011
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/api/api_v1/endpoints/gree.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from typing import List
from animated_drawings import render

from fastapi import Depends, HTTPException, APIRouter, File, UploadFile, Body
from fastapi import Depends, HTTPException, APIRouter, File, UploadFile, Body, Response
from sqlalchemy import select
from sqlalchemy.ext.asyncio import AsyncSession
from concurrent.futures import ProcessPoolExecutor
Expand Down Expand Up @@ -115,8 +115,9 @@ async def update_gree(gree_id: int, gree_update: GreeUpdate, current_user: Membe


@router.get('/view', response_model=List[Gree])
async def read_grees(current_user: Member = Depends(get_current_user), db: AsyncSession = Depends(get_db)):
async def read_grees(response: Response, current_user: Member = Depends(get_current_user), db: AsyncSession = Depends(get_db)):
grees = await crud_get_grees(db, user_id=current_user.id)
response.headers['Content-Type'] = 'application/json; charset=utf-8'
return grees


Expand Down

0 comments on commit b0e0011

Please sign in to comment.