Skip to content

Commit

Permalink
Temporarily disable model filtering based on sensor type
Browse files Browse the repository at this point in the history
  • Loading branch information
marioba committed Jul 16, 2021
1 parent 6d390d0 commit 4ddc71f
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions comptages/core/layers.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,12 +166,13 @@ def create_relations(self):
{
'AllowMulti': False,
'AllowNull': False,
'FilterExpression': """
CASE WHEN current_value('id_sensor_type') = 1 THEN \"id\" IN ('1', '2', '4', '6', '7')
WHEN current_value('id_sensor_type') = 2 THEN \"id\" IN ('1', '3', '5')
WHEN current_value('id_sensor_type') = 3 THEN \"id\" IN ('12')
ELSE \"id\"
END""",
'FilterExpression': '',
# """
# CASE WHEN current_value('id_sensor_type') = 1 THEN \"id\" IN ('1', '2', '4', '6', '7')
# WHEN current_value('id_sensor_type') = 2 THEN \"id\" IN ('1', '3', '5')
# WHEN current_value('id_sensor_type') = 3 THEN \"id\" IN ('12')
# ELSE \"id\"
# END""",
'Key': 'id',
'Layer': self.layers['model'].id(),
'OrderByValue': False,
Expand Down

0 comments on commit 4ddc71f

Please sign in to comment.