File tree Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -38,8 +38,7 @@ def get_current_user(session: SessionDep, token: TokenDep) -> User:
3838            status_code = status .HTTP_403_FORBIDDEN ,
3939            detail = "Could not validate credentials" ,
4040        )
41-     print (F'TREMENDOUS3: { token_data .sub }  , { type (token_data )}  ' )
42-     user  =  session .get (User , token_data .sub )
41+     user  =  session .get (User , uuid .UUID (token_data .sub ))
4342    if  not  user :
4443        raise  HTTPException (status_code = 404 , detail = "User not found" )
4544    if  not  user .is_active :
Original file line number Diff line number Diff line change @@ -25,8 +25,5 @@ def init_db() -> None:
2525                is_superuser = True ,
2626            )
2727            user  =  crud .create_user (session = session , user_create = user_in )
28-             print ("======================" * 10 )
29-             print (f"{ user = }  " )
30-             print ("======================" * 10 )
3128
3229    print ("Database initialized successfully!" )
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments