Skip to content

Commit

Permalink
save_int for all integer string from Ergast
Browse files Browse the repository at this point in the history
  • Loading branch information
harningle committed Sep 8, 2023
1 parent 5fab6e1 commit a48b2a7
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions fastf1/ergast/structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ def _merge_dicts_of_lists(data):
'name': 'Seasons',
'type': list,
'method': _flatten_by_rename,
'map': {'season': {'name': 'season', 'type': int},
'map': {'season': {'name': 'season', 'type': save_int},
'url': {'name': 'seasonUrl', 'type': str}},
'sub': [],
'finalize': None
Expand All @@ -516,8 +516,8 @@ def _merge_dicts_of_lists(data):
'name': 'StandingsLists',
'type': list,
'method': _flatten_by_rename,
'map': {'season': {'name': 'season', 'type': int},
'round': {'name': 'round', 'type': int}},
'map': {'season': {'name': 'season', 'type': save_int},
'round': {'name': 'round', 'type': save_int}},
'finalize': None
}

Expand All @@ -536,8 +536,8 @@ def _merge_dicts_of_lists(data):
'name': 'Races',
'type': list,
'method': _flatten_by_rename,
'map': {'season': {'name': 'season', 'type': int},
'round': {'name': 'round', 'type': int},
'map': {'season': {'name': 'season', 'type': save_int},
'round': {'name': 'round', 'type': save_int},
'url': {'name': 'raceUrl', 'type': str},
'raceName': {'name': 'raceName', 'type': str},
'date': {'name': 'raceDate', 'type': date_from_ergast},
Expand Down Expand Up @@ -598,8 +598,8 @@ def _merge_dicts_of_lists(data):
'name': 'Status',
'type': list,
'method': _flatten_by_rename,
'map': {'statusId': {'name': 'statusId', 'type': int},
'count': {'name': 'count', 'type': int},
'map': {'statusId': {'name': 'statusId', 'type': save_int},
'count': {'name': 'count', 'type': save_int},
'status': {'name': 'status', 'type': str}},
'sub': [],
'finalize': None
Expand Down

0 comments on commit a48b2a7

Please sign in to comment.