Added a line to upload a picture

This commit is contained in:
Michael authored and GitHub committed 2021-03-18 07:58:09 +01:00
1 parent 9a67f4f2b5
commit ef4461cb2d
1 file changed
+3
+3
View File
@@ -118,6 +118,9 @@ WeightTemplate = ParameterTemplate.create(api, { 'name' : 'Weight', 'units' : 'k
## Now we create the parameters
ParameterLength = Parameter.create(api, { 'part': couch.pk, 'template': LengthTemplate.pk, 'data' : 2 })
ParameterWeight = Parameter.create(api, { 'part': couch.pk, 'template': WeightTemplate.pk, 'data' : 60 })
## Add a picture to the part
couch.upload_image('my_nice_couch.jpg')
```
#### Adding a location to the sofa