Skip to content

Commit 58eadfb

Browse files
authored
Merge pull request #268 from American-Institutes-for-Research/HEA-1009/product_sales_local_no_sold
Hea 1009/product sales local no sold
2 parents 5e0cb93 + c17184a commit 58eadfb

2 files changed

Lines changed: 37 additions & 1 deletion

File tree

pipelines/assets/livelihood_activity_regexes.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@
476476
"percentage_sold_slaughtered"
477477
],
478478
[
479-
"{product_pattern} sales{separator_pattern} {nbr_pattern} sold",
479+
"{product_pattern}(?: sales)?{separator_pattern} {nbr_pattern} sold",
480480
"LivestockSale",
481481
true,
482482
"quantity_sold"

pipelines_tests/test_assets/test_livelihood_activity_regexes.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,42 @@
145145
"product_id": "cattle",
146146
"attribute": "quantity_sold"
147147
},
148+
"cattle sales - local: no. sold": {
149+
"strategy_type": "LivestockSale",
150+
"is_start": true,
151+
"product_id": "cattle sales - local",
152+
"attribute": "quantity_sold"
153+
},
154+
"cattle - local: no. sold": {
155+
"strategy_type": "LivestockSale",
156+
"is_start": true,
157+
"product_id": "cattle - local",
158+
"attribute": "quantity_sold"
159+
},
160+
"goat sales - local: no. sold": {
161+
"strategy_type": "LivestockSale",
162+
"is_start": true,
163+
"product_id": "goat sales - local",
164+
"attribute": "quantity_sold"
165+
},
166+
"goat - local: no. sold": {
167+
"strategy_type": "LivestockSale",
168+
"is_start": true,
169+
"product_id": "goat - local",
170+
"attribute": "quantity_sold"
171+
},
172+
"pig sales - local: no. sold": {
173+
"strategy_type": "LivestockSale",
174+
"is_start": true,
175+
"product_id": "pig sales - local",
176+
"attribute": "quantity_sold"
177+
},
178+
"pig - local: no. sold": {
179+
"strategy_type": "LivestockSale",
180+
"is_start": true,
181+
"product_id": "pig - local",
182+
"attribute": "quantity_sold"
183+
},
148184
"cattle offtake (% sold/slaughtered)": {
149185
"product_id": "cattle",
150186
"attribute": "percentage_sold_slaughtered"

0 commit comments

Comments
 (0)