diff --git a/popos/popos.py b/popos/popos.py index 8313f19..d5a55d2 100644 --- a/popos/popos.py +++ b/popos/popos.py @@ -286,8 +286,7 @@ class OrderListData: warehouse_list: List[WarehouseList] - -def js(s: str | Response): +def jsn(s: str | Response): if isinstance(s, Response): s = s.text return json.loads(s, object_hook=lambda d: SimpleNamespace(**d)) diff --git a/requirements.txt b/requirements.txt index 2a1a28a..c355c6a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,3 +2,4 @@ requests fastapi hypy_utils uvicorn +pysocks