Skip to content

Commit

Permalink
fix: 修改对 utils 的导入方式
Browse files Browse the repository at this point in the history
  • Loading branch information
WindowsSov8forUs committed May 17, 2024
1 parent 60326e3 commit ae842e3
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name='tsugu-api-python',
version='1.1.7',
version='1.2.0',
author='WindowsSov8',
author_email='[email protected]',
description='Tsugu BanGDream Bot 的功能 API 统合包',
Expand Down
3 changes: 2 additions & 1 deletion tsugu_api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
`tsugu_api` 向 Tsugu 后端 API 请求模块
'''

import tsugu_api_core.utils as utils
from tsugu_api_core.utils import *

import tsugu_api_core.settings as settings

from ._user import get_user_data as get_user_data
Expand Down
3 changes: 2 additions & 1 deletion tsugu_api_async/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
`tsugu_api` 向 Tsugu 后端 API 请求模块
'''

import tsugu_api_core.utils as utils
from tsugu_api_core.utils import *

import tsugu_api_core.settings as settings

from ._user import get_user_data as get_user_data
Expand Down
7 changes: 7 additions & 0 deletions tsugu_api_core/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,10 @@ def station_room_to_tsugu(station_room: _StationRoom) -> _Room:
'userName': station_room['user_info']['username']
}
return room

__all__ = [
'string_to_server_code',
'int_to_server_short',
'int_to_server_full',
'station_room_to_tsugu'
]

0 comments on commit ae842e3

Please sign in to comment.