Mbonea commited on
Commit
5425bdf
1 Parent(s): e666955
App/Transcription/TranscriptionRoutes.py CHANGED
@@ -71,7 +71,7 @@ async def download_audio(
71
  async def get_user_transcriptions(
72
  user: UserSchema = Depends(get_token_owner),
73
  ):
74
- transcriptions = await Transcriptions.objects.filter(user=user).all()
75
  objects = [BaseTranscription(**obj.__dict__) for obj in transcriptions]
76
  return objects
77
 
 
71
  async def get_user_transcriptions(
72
  user: UserSchema = Depends(get_token_owner),
73
  ):
74
+ transcriptions = await Transcriptions.objects.filter(user=user.id).all()
75
  objects = [BaseTranscription(**obj.__dict__) for obj in transcriptions]
76
  return objects
77