chuni: add missing alembic script

This commit is contained in:
Kevin Trocolli
2024-06-29 00:08:11 -04:00
parent c4afb083f9
commit 44fb6037cf
4 changed files with 34 additions and 2 deletions

View File

@@ -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"]:

View File

@@ -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