use only days
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Torma Kristóf 2020-05-22 00:31:53 +02:00
parent 1bb96f90a1
commit 53b6b23ccc
Signed by: tormakris
GPG Key ID: DC83C4F2C41B1047
2 changed files with 2 additions and 2 deletions

View File

@ -65,7 +65,7 @@ class InputServiceServer {
val queueName = channel.queueDeclare().queue val queueName = channel.queueDeclare().queue
channel.queueBind(queueName, rabbitExchangeName, "") channel.queueBind(queueName, rabbitExchangeName, "")
val gson = GsonBuilder().setDateFormat("yyyy-MM-dd HH:mm:ss").create() val gson = GsonBuilder().setDateFormat("yyyy-MM-dd").setPrettyPrinting().create()
get("/sample"){ get("/sample"){
call.respond(resultObjectService.getAllInputObjects()) call.respond(resultObjectService.getAllInputObjects())

View File

@ -10,7 +10,7 @@ FILE = 'CommonStarling_102761_45.wav'
files = { files = {
"file": (os.path.basename(FILE), open(FILE,'rb').read(), 'audio/wave', {'Content-length' : os.path.getsize(FILE)}), "file": (os.path.basename(FILE), open(FILE,'rb').read(), 'audio/wave', {'Content-length' : os.path.getsize(FILE)}),
"description" : (None, json.dumps({"date" : datetime.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"), "device_id" : "123"}), "application/json")
} }
r = requests.post(URL,files=files) r = requests.post(URL,files=files)