Skip to content

Commit

Permalink
Update functions.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Shom770 authored Feb 19, 2024
1 parent ebb831b commit ff4954d
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 ff4954d

Please sign in to comment.