Skip to content

Commit

Permalink
fix wrong var
Browse files Browse the repository at this point in the history
  • Loading branch information
elsholz committed Jan 13, 2024
1 parent d6a9795 commit 4d79797
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions api/code/metroplanner_api/v1/endpoints/_planstates.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,18 +59,18 @@ def post_planstate(
"last_modified_at": now,
}

if plan_details.make_current:
if planstate_data.make_current:
set_plan_data["current_state"] = created_result.inserted_id
set_plan_data["current_number_of_edges"] = planstate_data[
set_plan_data["current_number_of_edges"] = set_planstate_data[
"number_of_edges"
]
set_plan_data["current_number_of_lines"] = planstate_data[
set_plan_data["current_number_of_lines"] = set_planstate_data[
"number_of_lines"
]
set_plan_data["current_number_of_nodes"] = planstate_data[
set_plan_data["current_number_of_nodes"] = set_planstate_data[
"number_of_nodes"
]
set_plan_data["current_number_of_labels"] = planstate_data[
set_plan_data["current_number_of_labels"] = set_planstate_data[
"number_of_labels"
]

Expand Down

0 comments on commit 4d79797

Please sign in to comment.