Skip to content

Commit

Permalink
fix: 修复excel文件后缀
Browse files Browse the repository at this point in the history
  • Loading branch information
aglorice committed Dec 28, 2023
1 parent 139ceb7 commit 4ab4682
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion get_all_excel_file_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def get_city_scene(province_name: str, city_name: str) -> list:


def read_excel_to_data(path: str, scene_name: str) -> list:
_path = os.path.join(path, f"{scene_name}.xls")
_path = os.path.join(path, f"{scene_name}.xlsx")
if not os.path.exists(_path):
return []
data = pd.read_excel(_path).to_dict(orient='records')
Expand Down

0 comments on commit 4ab4682

Please sign in to comment.