File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -39,10 +39,14 @@ def register_grid_square(
3939 .where (GridSquare .tag == grid_square_params .tag )
4040 .where (GridSquare .session_id == session_id )
4141 ).one ()
42- grid_square .x_location = grid_square_params .x_location
43- grid_square .y_location = grid_square_params .y_location
44- grid_square .x_stage_position = grid_square_params .x_stage_position
45- grid_square .y_stage_position = grid_square_params .y_stage_position
42+ grid_square .x_location = grid_square_params .x_location or grid_square .x_location
43+ grid_square .y_location = grid_square_params .y_location or grid_square .y_location
44+ grid_square .x_stage_position = (
45+ grid_square_params .x_stage_position or grid_square .x_stage_position
46+ )
47+ grid_square .y_stage_position = (
48+ grid_square_params .y_stage_position or grid_square .y_stage_position
49+ )
4650 if _transport_object :
4751 _transport_object .do_update_grid_square (grid_square .id , grid_square_params )
4852 except Exception :
You can’t perform that action at this time.
0 commit comments