Fixed tempfile creation again
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				continuous-integration/drone/push Build is passing
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	continuous-integration/drone/push Build is passing
				
			This commit is contained in:
		@@ -55,7 +55,7 @@ def run_everything(parameters: dict):
 | 
			
		||||
    tag = parameters['tag']
 | 
			
		||||
    logging.info(f"Downloading sample: {tag}")
 | 
			
		||||
 | 
			
		||||
    file_path = tempfile.mktemp(prefix=f"{tag}_", suffix=".wav", dir="extractor-service")
 | 
			
		||||
    _, file_path = tempfile.mkstemp(prefix=f"{tag}_", suffix=".wav")
 | 
			
		||||
    r = requests.get(f"http://storage-service/object/{tag}")
 | 
			
		||||
    with open(file_path, 'wb') as f:
 | 
			
		||||
        f.write(r.content)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user