ArthurG / Kijiji-Repost-Headless

Repost / Post Kijiji ads with Python
MIT License
143 stars 59 forks source link

Only 1 line of attributeMap[...] written to yml file for Tires #184

Open data4ryan opened 4 years ago

data4ryan commented 4 years ago

When I attempted to post Tires, the yml file only had one line of postAdForm.attributeMap and ultimately failed to post.

When posting tires, it asks for tire size when building the ad and it correctly adds this to the yml file (i.e. postAdForm.attributeMap[tiresize_s]: '160' is properly included). However as a result, the For Sale By field, postAdForm.attributeMap[forsaleby_s]: ownr is not written causing the post to fail. To fix this I copied and pasted this line from another yml file and it posted correctly.

It must just need to iterate through all the fields of the attributeMap when writing the file.