Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ajabeckett committed Oct 16, 2023
1 parent 35e22cf commit e83f8fd
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions terraso_backend/apps/soil_id/models/soil_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ class LimeRequirements(models.TextChoices):
HIGH = "HIGH", "High amounts of lime required"
VERY_DIFFICULT = "VERY_DIFFICULT", "Very difficult to modify with lime"

lime_requirements_select = models.CharField(blank=True, null=True, choices=LimeRequirements.choices)
lime_requirements_select = models.CharField(
blank=True, null=True, choices=LimeRequirements.choices)

class SurfaceStoniness(models.TextChoices):
LESS_THAN_01 = "LESS_THAN_01", "< 0.1%"
Expand All @@ -144,8 +145,9 @@ class SurfaceStoniness(models.TextChoices):
BETWEEN_15_AND_50 = "BETWEEN_15_AND_50", "15 to 50%"
BETWEEN_50_AND_90 = "BETWEEN_50_AND_90", "50 - 90%"
GREATER_THAN_90 = "GREATER_THAN_90", "> 90%"

surface_stoniness_select = models.CharField(blank=True, null=True, choices=SurfaceStoniness.choices)

surface_stoniness_select = models.CharField(
blank=True, null=True, choices=SurfaceStoniness.choices)

class WaterTableDepth(models.TextChoices):
NOT_FOUND = "NOT_FOUND", "Not found"
Expand All @@ -155,14 +157,17 @@ class WaterTableDepth(models.TextChoices):
BETWEEN_75_AND_120_CM = "BETWEEN_75_AND_120_CM", "75 to 120 cm"
GREATER_THAN_120_CM = "GREATER_THAN_120_CM", "> 120 cm"

water_table_depth_select = models.CharField(blank=True, null=True, choices=WaterTableDepth.choices)
water_table_depth_select = models.CharField(
blank=True, null=True, choices=WaterTableDepth.choices)

class SoilDepth(models.TextChoices):
NOT_FOUND = "NOT_FOUND", "Not found"
TWENTY_CM_OR_LESS = "TWENTY_CM_OR_LESS", "20 cm or less"
GREATER_THAN_20_LESS_THAN_50_CM = "GREATER_THAN_20_LESS_THAN_50_CM", "Greater than 20 and less than 50 cm"
GREATER_THAN_20_LESS_THAN_50_CM = (
"GREATER_THAN_20_LESS_THAN_50_CM", "Greater than 20 and less than 50 cm")
BETWEEN_50_AND_70_CM = "BETWEEN_50_AND_70_CM", "Between 50 and 70 cm"
GREATER_THAN_70_LESS_THAN_100_CM = "GREATER_THAN_70_LESS_THAN_100_CM", "Greater than 70 and less than 100 cm"
GREATER_THAN_70_LESS_THAN_100_CM = (
"GREATER_THAN_70_LESS_THAN_100_CM", "Greater than 70 and less than 100 cm")
HUNDRED_CM_OR_GREATER = "HUNDRED_CM_OR_GREATER", "100 cm or greater"

soil_depth_select = models.CharField(blank=True, null=True, choices=SoilDepth.choices)
Expand Down Expand Up @@ -190,9 +195,10 @@ class Grazing(models.TextChoices):
CAMEL = "CAMEL", "Camel"
WILDLIFE_FOREST = "WILDLIFE_FOREST", "Wildlife (forest, deer)"
WILDLIFE_GRASSLANDS = "WILDLIFE_GRASSLANDS", "Wildlife (grasslands, giraffes, ibex)"

grazing = models.CharField(blank=True, null=True, choices=Grazing.choices)


class SoilDataDepthInterval(BaseModel, BaseDepthInterval):
soil_data = models.ForeignKey(
SoilData, on_delete=models.CASCADE, related_name="depth_intervals"
Expand Down

0 comments on commit e83f8fd

Please sign in to comment.