diff options
| author | A Farzat <a@farzat.xyz> | 2025-10-12 14:57:22 +0300 |
|---|---|---|
| committer | A Farzat <a@farzat.xyz> | 2025-10-12 14:57:22 +0300 |
| commit | e4d8ae3d88aac184ba7c15c3683630ea8e182e61 (patch) | |
| tree | 5dfd71824a4a33a96a73faeb8e3166aa887adcab /wsgi/utils.py | |
| parent | 20c63cb6b18ee70b874ba63c1ad6212af165b291 (diff) | |
| download | csca5028-deploy.tar.gz csca5028-deploy.zip | |
Diffstat (limited to 'wsgi/utils.py')
| -rw-r--r-- | wsgi/utils.py | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/wsgi/utils.py b/wsgi/utils.py deleted file mode 100644 index 2c9e1e5..0000000 --- a/wsgi/utils.py +++ /dev/null @@ -1,14 +0,0 @@ -from typing import Any, Dict, List -from components.subscriptions.main import Subscription -from components.subscriptions.typing import SubsDict -from components.videos import VideoTuple - -def vid_dicts_from_tuple_list(tuple_list: List[VideoTuple]) -> List[Dict[str, Any]]: - return [VideoTuple._make(vid)._asdict() for vid in tuple_list] - -def sub_info_from_dict(sub_dict: SubsDict) -> Dict[str, Any]: - return { - **sub_dict, - "videos": len(sub_dict["videos"]), - "new_vids": len(Subscription(**sub_dict).get_new_vids()), - } |
