mirror of
https://gitea.tendokyu.moe/Hay1tsme/artemis.git
synced 2025-12-14 08:06:25 +08:00
chuni: add missing alembic script
This commit is contained in:
@@ -737,7 +737,7 @@ class ChuniBase:
|
||||
team_name = team["teamName"]
|
||||
team_rank = await self.data.profile.get_team_rank(team["id"])
|
||||
team_point = team["teamPoint"]
|
||||
if team["userTeamPoint"] is not None and team["userTeamPoint"] is not "":
|
||||
if team["userTeamPoint"] is not None and team["userTeamPoint"] != "":
|
||||
user_team_point_data = json.loads(team["userTeamPoint"])
|
||||
for user_point_data in user_team_point_data:
|
||||
if user_point_data["user"] == data["userId"]:
|
||||
|
||||
@@ -718,7 +718,7 @@ class ChuniProfileData(BaseData):
|
||||
)
|
||||
return False
|
||||
user_team_point_data = []
|
||||
if existing_team["userTeamPoint"] is not None and existing_team["userTeamPoint"] is not "":
|
||||
if existing_team["userTeamPoint"] is not None and existing_team["userTeamPoint"] != "":
|
||||
user_team_point_data = json.loads(existing_team["userTeamPoint"])
|
||||
updated = False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user