Skip to content

Commit bee3ffb

Browse files
committed
fix(export/statistics): Fix crop/row mapping
1 parent 342aac6 commit bee3ffb

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/apps/surveys18/export/statistics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def get_sheet_1_3_rows(self, sheet_idx, farmer_id):
6464
def get_sheet_2_4_rows(self, sheet_idx, farmer_id):
6565
survey = self.survey_map.get(farmer_id)
6666
management_type = survey.management_types.first()
67-
crop_mapping = {1: 8, 2: 9, 3: 11, 4: 10, 5: 12, 6: 13, 7: 14, 8: 16, 9: 16, 10: 15}
67+
crop_mapping = {1: 8, 2: 9, 3: 11, 4: 10, 5: 12, 6: 13, 7: 15, 8: 14, 9: 16, 10: 16}
6868
animal_mapping = {11: 18, 12: 19, 13: 20, 14: 21}
6969
if management_type.id in crop_mapping.keys():
7070
rows = [7, crop_mapping.get(management_type.id)]

src/apps/surveys19/export/statistics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def get_sheet_1_3_rows(self, sheet_idx, farmer_id):
6262
def get_sheet_2_4_rows(self, sheet_idx, farmer_id):
6363
survey = self.survey_map.get(farmer_id)
6464
management_type = survey.management_types.first()
65-
crop_mapping = {1: 8, 2: 9, 3: 11, 4: 10, 5: 12, 6: 13, 7: 14, 8: 16, 9: 16, 10: 15}
65+
crop_mapping = {1: 8, 2: 9, 3: 11, 4: 10, 5: 12, 6: 13, 7: 15, 8: 14, 9: 16, 10: 16}
6666
animal_mapping = {11: 18, 12: 19, 13: 20, 14: 21}
6767
if management_type.id in crop_mapping.keys():
6868
rows = [7, crop_mapping.get(management_type.id)]

0 commit comments

Comments
 (0)