remove T from dateformat
	
		
			
	
		
	
	
		
	
		
			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:
		@@ -23,7 +23,7 @@ fun Application.module() {
 | 
			
		||||
    install(ContentNegotiation) {
 | 
			
		||||
        gson {
 | 
			
		||||
            setPrettyPrinting()
 | 
			
		||||
            setDateFormat("yyyy-MM-dd'T'HH:mm:ss")
 | 
			
		||||
            setDateFormat("yyyy-MM-dd HH:mm:ss")
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										4
									
								
								test.py
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								test.py
									
									
									
									
									
								
							@@ -2,7 +2,7 @@
 | 
			
		||||
import requests
 | 
			
		||||
import os.path
 | 
			
		||||
import json
 | 
			
		||||
from datetime import datetime
 | 
			
		||||
import datetime
 | 
			
		||||
 | 
			
		||||
URL = "http://127.0.0.1:8080/sample"
 | 
			
		||||
 | 
			
		||||
@@ -10,7 +10,7 @@ FILE = 'CommonStarling_102761_45.wav'
 | 
			
		||||
 | 
			
		||||
files = {
 | 
			
		||||
	"file": (os.path.basename(FILE), open(FILE,'rb').read(), 'audio/wave', {'Content-length' : os.path.getsize(FILE)}),
 | 
			
		||||
	"description" : (None, json.dumps({"date" : today.strftime("%Y-%m-%d %H:%M:%S"), "device_id" : "123"}), "application/json")
 | 
			
		||||
	"description" : (None, json.dumps({"date" : datetime.date.today().strftime("%Y-%m-%d %H:%M:%S"), "device_id" : "123"}), "application/json")
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
r = requests.post(URL,files=files)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user