Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Shom770 committed Mar 2, 2024
2 parents 9618a1d + ff4954d commit 29a8030
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/functions.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Defines utility functions that are later used in FalconVis."""
from io import StringIO
from json import load
from json import load, loads
from re import search
from typing import Any

Expand Down Expand Up @@ -48,7 +48,7 @@ def retrieve_scouting_data() -> DataFrame:
:return: A dataframe containing the scouting data from an event.
"""
scouting_data = DataFrame.from_dict(
get(EventSpecificConstants.URL).json()
loads(get(EventSpecificConstants.URL).text)
)
scouting_data[Queries.MATCH_NUMBER] = scouting_data[Queries.MATCH_KEY].apply(
lambda match_key: int(search(r"\d+", match_key).group(0))
Expand Down

0 comments on commit 29a8030

Please sign in to comment.