Fix materials API call

This commit is contained in:
Lipu Fei 2019-08-28 15:31:52 +02:00
parent bc4809d8f8
commit 6591593f59
2 changed files with 3 additions and 3 deletions

View file

@ -126,7 +126,7 @@ class SendMaterialJob(Job):
.format(file_name = signature_file_name), f.read()))
Logger.log("d", "Syncing material {material_id} with cluster.".format(material_id = material_id))
self.device.postFormWithParts(target = "materials/", parts = parts, on_finished = self.sendingFinished)
self.device.postFormWithParts(target = "/materials/", parts = parts, on_finished = self.sendingFinished)
## Check a reply from an upload to the printer and log an error when the call failed
@staticmethod