File tree Expand file tree Collapse file tree 2 files changed +10
-12
lines changed Expand file tree Collapse file tree 2 files changed +10
-12
lines changed Original file line number Diff line number Diff line change @@ -16,9 +16,7 @@ def __init__(self):
1616    def  registerObject (self , id ):
1717        data  =  self .get_data_by_id (id )
1818        if  not  data :
19-             raise  Exception (
20-                 f"Données avec l'ID { id }   non trouvées dans la base de données" 
21-             )
19+             raise  Exception (f"Data { id }   not found in { self .DATA_FOLDER_PATH }  " )
2220
2321        reader  =  vtk .vtkXMLGenericDataObjectReader ()
2422        mapper  =  vtk .vtkDataSetMapper ()
Original file line number Diff line number Diff line change @@ -57,20 +57,20 @@ def add_arguments(parser):
5757            default = os .environ .get ("DATA_FOLDER_PATH" ),
5858            help = "Path to the folder where data is stored" ,
5959        )
60-         #  parser.add_argument(
61-         #      "--database_path",
62-         #      default=os.environ.get("DATABASE_PATH"),
63-         #      help="Path to the SQLite database file",
64-         #  )
60+         parser .add_argument (
61+             "--database_path" ,
62+             default = os .environ .get ("DATABASE_PATH" ),
63+             help = "Path to the SQLite database file" ,
64+         )
6565
6666    @staticmethod  
6767    def  configure (args ):
6868        # Standard args 
6969        _Server .authKey  =  args .authKey 
70-         #  if args.data_folder_path:
71-         #      os.environ["DATA_FOLDER_PATH"] = args.data_folder_path
72-         #  if args.database_path:
73-         #      os.environ["DATABASE_PATH"] = args.database_path
70+         if  args .data_folder_path :
71+             os .environ ["DATA_FOLDER_PATH" ] =  args .data_folder_path 
72+         if  args .database_path :
73+             os .environ ["DATABASE_PATH" ] =  args .database_path 
7474
7575    def  initialize (self ):
7676        # Bring used components 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments