Skip to content

Commit

Permalink
nigeria_portal: Use []= instead of update()
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Nov 13, 2020
1 parent c6755df commit db491c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kingfisher_scrapy/spiders/nigeria_portal.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def parse_list(self, response):
formdata = {}
for item in response.xpath('//input/@name').getall():
if re.search(r'^dnn\$ctr561\$no_JsonReport\$DGno_Proc_PlanningPublished\$ctl\d+\$chbIsDoing$', item):
formdata.update({item: 'on'})
formdata[item] = 'on'

yield scrapy.FormRequest.from_response(
response,
Expand Down

0 comments on commit db491c6

Please sign in to comment.