Commit 2917cf3 1 parent 6050a45 commit 2917cf3 Copy full SHA for 2917cf3
File tree 2 files changed +3
-7
lines changed
2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ def calculate_delta(
114
114
) -> datetime | None :
115
115
assert config ["mode" ] == "relativeToVariable"
116
116
117
- base_value = glom ( data , config ["variable" ], default = None )
117
+ base_value = data . get ( config ["variable" ])
118
118
if not base_value :
119
119
return
120
120
Original file line number Diff line number Diff line change @@ -132,13 +132,9 @@ def evaluate_form_logic(
132
132
# TODO: refactor this to rely on variables state
133
133
config_wrapper = get_dynamic_configuration (
134
134
config_wrapper ,
135
- # context is expected to contain request, as it's the default behaviour with
136
- # DRF view(set)s and serializers.
137
- # TODO: check if we can use context["request"] rather than .get - None is not
138
- # expected, but that currently breaks a lot of tests...
139
- request = context .get ("request" ),
135
+ request = None ,
140
136
submission = submission ,
141
- data = data_container . data ,
137
+ data = data_for_evaluation ,
142
138
)
143
139
144
140
# 7.1 Apply the component mutation operations
You can’t perform that action at this time.
0 commit comments