Skip to content

Commit 02505be

Browse files
committed
Merge branch 'main' into HEA-984/Livelihood_activity_valid_instances_errors_for_income_not_rounding_error
2 parents cad9284 + c8e3937 commit 02505be

2 files changed

Lines changed: 44 additions & 56 deletions

File tree

apps/common/migrations/0008_load_classified_product.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
# Generated by Django 4.2.2 on 2023-09-03 13:52
22
import ast
33
import datetime
4-
import json
54
import logging
65
import os
76
from collections import namedtuple
87

9-
from django.conf import settings
108
from django.db import migrations
119

1210
from common.utils import UnicodeDictReader, get_frozen_treebeard_model
@@ -231,7 +229,6 @@ def load_new_products(ClassifiedProduct):
231229
"P23130HB", "Groats, meal and pellets of oats, rolled oats", "Rolled oats", None, "", "", "", "", "", ""
232230
),
233231
Product("P23170HA", "Other vegetable flours and meals, yam flour", "Yam flour", None, "", "", "", "", "", ""),
234-
Product("R01412HA", "Soya beans, other, dry", "Soya beans (dry)", None, "", "", "", "", "", ""),
235232
Product(
236233
"R01219HA",
237234
"Other leafy or stem vegetables, dark green",
@@ -268,18 +265,6 @@ def load_new_products(ClassifiedProduct):
268265
"",
269266
"",
270267
),
271-
Product(
272-
"P24490HA",
273-
"Other non-alcoholic caloric beverages, soft drinks",
274-
"Soft drinks (commercial)",
275-
None,
276-
"",
277-
"",
278-
"",
279-
"",
280-
"",
281-
"",
282-
),
283268
Product(
284269
"P21111HA",
285270
"Meat of cattle, fresh or chilled, moderate fat",

pipelines_tests/test_assets/test_livelihood_activity_regexes.json

Lines changed: 44 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@
503503
"is_start": true,
504504
"season": "1ème saison",
505505
"attribute": "percentage_kcals"
506-
},
506+
},
507507
"poids de la carcasse (kg)": {
508508
"unit_of_measure_id": "kg",
509509
"attribute": "carcass_weight"
@@ -863,6 +863,10 @@
863863
"unit_of_measure_id": "kg",
864864
"attribute": "unit_multiple"
865865
},
866+
"AUTRE ACHAT": {
867+
"strategy_type": "OtherPurchase",
868+
"is_start": true
869+
},
866870
"Autre achat: beurre de Karité": {
867871
"is_start": true,
868872
"product_id": "beurre de karité",
@@ -1077,7 +1081,7 @@
10771081
"unit_of_measure_id": "kg",
10781082
"attribute": "quantity_produced"
10791083
},
1080-
"poisson : poisson 4 (kg collectés)" : {
1084+
"poisson : poisson 4 (kg collectés)": {
10811085
"is_start": true,
10821086
"product_id": "poisson 4",
10831087
"unit_of_measure_id": "kg",
@@ -1252,44 +1256,43 @@
12521256
"is_start": true,
12531257
"product_id": "vente de légumes",
12541258
"household_labor_provider": "girls"
1259+
},
1260+
"huile: nom du mesure": {
1261+
"is_start": true,
1262+
"product_id": "huile",
1263+
"attribute": "name_of_local_measure"
1264+
},
1265+
"sel - nom de la mesure locale": {
1266+
"is_start": true,
1267+
"product_id": "sel",
1268+
"attribute": "name_of_local_measure"
1269+
},
1270+
"sucre: nom mesure locale": {
1271+
"is_start": true,
1272+
"product_id": "sucre",
1273+
"attribute": "name_of_local_measure"
1274+
},
1275+
"eau pour humains: nom de mesure locale:.": {
1276+
"is_start": true,
1277+
"product_id": "eau pour humains",
1278+
"attribute": "name_of_local_measure"
1279+
},
1280+
"eau pour betail: nom de la mesure locale": {
1281+
"is_start": true,
1282+
"product_id": "eau pour betail",
1283+
"attribute": "name_of_local_measure"
1284+
},
1285+
"farine de ble - nom de la mesure locale": {
1286+
"is_start": true,
1287+
"product_id": "farine de ble",
1288+
"attribute": "name_of_local_measure"
1289+
},
1290+
"nom de la mesure local": {
1291+
"attribute": "name_of_local_measure"
1292+
},
1293+
"eau pour le bétail: nom mesure": {
1294+
"is_start": true,
1295+
"product_id": "eau pour le bétail",
1296+
"attribute": "name_of_local_measure"
12551297
}
1256-
,
1257-
"huile: nom du mesure": {
1258-
"is_start": true,
1259-
"product_id": "huile",
1260-
"attribute": "name_of_local_measure"
1261-
},
1262-
"sel - nom de la mesure locale": {
1263-
"is_start": true,
1264-
"product_id": "sel",
1265-
"attribute": "name_of_local_measure"
1266-
},
1267-
"sucre: nom mesure locale": {
1268-
"is_start": true,
1269-
"product_id": "sucre",
1270-
"attribute": "name_of_local_measure"
1271-
},
1272-
"eau pour humains: nom de mesure locale:.": {
1273-
"is_start": true,
1274-
"product_id": "eau pour humains",
1275-
"attribute": "name_of_local_measure"
1276-
},
1277-
"eau pour betail: nom de la mesure locale": {
1278-
"is_start": true,
1279-
"product_id": "eau pour betail",
1280-
"attribute": "name_of_local_measure"
1281-
},
1282-
"farine de ble - nom de la mesure locale": {
1283-
"is_start": true,
1284-
"product_id": "farine de ble",
1285-
"attribute": "name_of_local_measure"
1286-
},
1287-
"nom de la mesure local": {
1288-
"attribute": "name_of_local_measure"
1289-
},
1290-
"eau pour le bétail: nom mesure": {
1291-
"is_start": true,
1292-
"product_id": "eau pour le bétail",
1293-
"attribute": "name_of_local_measure"
1294-
}
12951298
}

0 commit comments

Comments
 (0)