diff --git a/nonebot_plugin_tetris_stats/db/__init__.py b/nonebot_plugin_tetris_stats/db/__init__.py index fb0c89be..c4ee595a 100644 --- a/nonebot_plugin_tetris_stats/db/__init__.py +++ b/nonebot_plugin_tetris_stats/db/__init__.py @@ -55,12 +55,12 @@ async def create_or_update_bind( game_account=game_account, ) session.add(bind) - message = BindStatus.SUCCESS + status = BindStatus.SUCCESS else: bind.game_account = game_account - message = BindStatus.UPDATE + status = BindStatus.UPDATE await session.commit() - return message + return status T = TypeVar('T', 'TETRIOHistoricalData', 'TOPHistoricalData', 'TOSHistoricalData')