print debug
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Torma Kristóf 2020-05-21 23:37:53 +02:00
parent 922d22c07d
commit 5b8f8cc108
Signed by: tormakris
GPG Key ID: DC83C4F2C41B1047
2 changed files with 2 additions and 1 deletions

View File

@ -77,6 +77,7 @@ class InputServiceServer {
is PartData.FormItem -> {
if (part.name == "description") {
val gson = Gson()
print(part.value)
description = gson.fromJson(part.value, SampleObject::class.java)
}
}

View File

@ -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' : datetime.now().isoformat(), 'device_id' : '123'}), "application/json")
"description" : (None, json.dumps({"date" : datetime.now().isoformat(), "device_id" : "123"}), "application/json")
}
r = requests.post(URL,files=files)