Skip to content

Commit

Permalink
Merge pull request #2101 from bcgov/feat/gwells-2052
Browse files Browse the repository at this point in the history
[HOTFIX][GWELLS-2052] Added empty string check
  • Loading branch information
sanjaytkbabu authored Jan 4, 2024
2 parents c78873e + cfd419f commit 4091c2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/backend/aquifers/views_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def _aquifer_qs(request):
# if Aquifer parameters flag is set, obtain list of wells with aquifer parameters set and compare its aquifer id against the original query set
# remove aquifers that doesn't have a match from the original query set
if (aquifer_parameters):
wqs = Well.objects.filter(Q(transmissivity__isnull=False) | Q(storativity__isnull=False) | Q(hydraulic_conductivity__isnull=False), aquifer_id__isnull=False)
wqs = Well.objects.filter(Q(transmissivity__isnull=False) | Q(storativity__isnull=False) | (Q(hydraulic_conductivity__isnull=False) & ~Q(hydraulic_conductivity__exact='')), aquifer_id__isnull=False)
well_aquifer_id_array = [well.aquifer_id for well in wqs]
qs = qs.filter(aquifer_id__in = well_aquifer_id_array)

Expand Down

0 comments on commit 4091c2c

Please sign in to comment.