yarl / pattypan

Upload files to Wikimedia Commons. The Spreadsheet Way.
https://commons.wikimedia.org/wiki/Commons:Pattypan
MIT License
56 stars 37 forks source link

Not clearing previous settings when creating spreadsheet #116

Open Adzebill opened 4 years ago

Adzebill commented 4 years ago

When creating a spreadsheet the template will often be populated with text from previous uploads. For example, in this dataset Depicted Place was set to NO, but because the field had been used in a previous Lincoln University upload, it was created, with the wrong value:

|depicted people = ${depicted_people} |depicted place = Lincoln University |date = ${date} |medium = |dimensions = |institution = {{Institution:Massey University}}

Similarly, this text from another previous upload was added after the license:

This image is one of a series of Des Helmore illustrations released under a Commons License in September 2018 through the [[:en:Wikipedia:GLAM/New_Zealand_Wikipedian_at_Large|New Zealand Wikipedian at Large]] project; for details see the [[:en:Wikipedia:GLAM/Landcare|Wikipedia project page]].

It is possible of course to manually edit out this information, but it is easy to miss something and ruin an upload. Pattypan should clear the contents of all template fields, used and unused, when creating a new spreadsheet; or at least not include unwanted information from previous uploads.

image

pigsonthewing commented 4 years ago

I have encountered this issue also; however the extraneous data is not in my spreadsheet; it must presumably be cached somewhere inside Pattypan. Which means I cannot remove it.