Skip to content

Commit

Permalink
rename var
Browse files Browse the repository at this point in the history
  • Loading branch information
Nate-Wessel committed Jun 11, 2024
1 parent 2e218bf commit 602db83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/app/get_travel_time.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def get_travel_time(start_node, end_node, start_time, end_time, start_date, end_
SELECT 1 FROM ref.holiday WHERE ta.dt = holiday.dt
)'''

raw_data_query = f'''
query = f'''
SELECT
link_dir,
dt,
Expand Down Expand Up @@ -72,7 +72,7 @@ def get_travel_time(start_node, end_node, start_time, end_time, start_date, end_
connection = getConnection()
with connection:
with connection.cursor() as cursor:
cursor.execute(raw_data_query, query_params)
cursor.execute(query, query_params)
raw_data_frame = pandas.DataFrame(
cursor.fetchall(),
columns=['link_dir','dt','hr','length','tt']
Expand Down

0 comments on commit 602db83

Please sign in to comment.