From 617f94e3619a899d4efa67c142b8f065df460a47 Mon Sep 17 00:00:00 2001 From: Bram Ulrichts <108867473+bulricht@users.noreply.github.com> Date: Wed, 23 Oct 2024 10:56:16 +0200 Subject: [PATCH] assign value instead of testing for equality --- templates/sediment_sampling.ldt.ttl.j2 | 4 ++-- templates/water_sampling.ldt.ttl.j2 | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/sediment_sampling.ldt.ttl.j2 b/templates/sediment_sampling.ldt.ttl.j2 index 610a6a9..6e39f4d 100644 --- a/templates/sediment_sampling.ldt.ttl.j2 +++ b/templates/sediment_sampling.ldt.ttl.j2 @@ -82,7 +82,7 @@ Sets: ] ; {%- endif %} {%- if '-' in _.depth %} {# case 3: (range/single value) x-y/x-x (assuming smallest always first) #} - {% set x,y == _.depth.split('-') %} + {% set x,y = _.depth.split('-') %} emobon-sampling:minSamplingDepth [ a qudt:QuantityValue ; qudt:numericValue {{ x | xsd("integer") | safe }} ; @@ -223,7 +223,7 @@ Sets: ] ; {%- endif %} {%- if '-' in _.depth %} {# case 3: (range/single value) x-y/x-x (assuming smallest always first) #} - {% set x,y == _.depth.split('-') %} + {% set x,y = _.depth.split('-') %} emobon-sampling:minSampleDepth [ a qudt:QuantityValue ; qudt:numericValue {{ x | xsd("integer") | safe }} ; diff --git a/templates/water_sampling.ldt.ttl.j2 b/templates/water_sampling.ldt.ttl.j2 index 9290842..9e5bb0c 100644 --- a/templates/water_sampling.ldt.ttl.j2 +++ b/templates/water_sampling.ldt.ttl.j2 @@ -81,7 +81,7 @@ Sets: ] ; {%- endif %} {%- if '-' in _.depth %} {# case 3: (range/single value) x-y/x-x (assuming smallest always first) #} - {% set x,y == _.depth.split('-') %} + {% set x,y = _.depth.split('-') %} emobon-sampling:minSamplingDepth [ a qudt:QuantityValue ; qudt:numericValue {{ x | xsd("integer") | safe }} ; @@ -221,7 +221,7 @@ Sets: ] ; {%- endif %} {%- if '-' in _.depth %} {# case 3: (range/single value) x-y/x-x (assuming smallest always first) #} - {% set x,y == _.depth.split('-') %} + {% set x,y = _.depth.split('-') %} emobon-sampling:minSampleDepth [ a qudt:QuantityValue ; qudt:numericValue {{ x | xsd("integer") | safe }} ;