Skip to content

Commit

Permalink
Merge pull request #193 from dod-advana/hotfix/samm_selector
Browse files Browse the repository at this point in the history
included Incorporated pm status
  • Loading branch information
amaruca141 committed Sep 22, 2023
2 parents 605a2f8 + f1718dc commit 61d0cd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dataPipelines/gc_scrapy/gc_scrapy/spiders/samm_spider.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def parse(self, response):
for row in response.xpath('//div[@class="view-content"]//table/tbody/tr'):
pm_status_text = row.xpath('td[6]/text()').get()
pm_status = pm_status_text.strip() if pm_status_text is not None else ""
if pm_status == "Active":
if pm_status == "Active" or "Incorporated":
relative_urls = row.xpath('td[2]/a/@href').get()
doc_name = row.xpath('td[2]/a/text()').get().strip()
doc_title = row.xpath('normalize-space(td[5]/text())').get()
Expand Down

0 comments on commit 61d0cd6

Please sign in to comment.