Skip to content

Commit

Permalink
Fix faction position update
Browse files Browse the repository at this point in the history
Signed-off-by: tiksan <webmaster@deek.sh>
  • Loading branch information
dssecret committed Nov 28, 2024
1 parent d7994b3 commit 1a48c61
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions celery/tornium_celery/tasks/faction.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,9 +277,7 @@ def update_faction_positions(faction_positions_data: dict) -> typing.Optional[di
FactionPosition.name << (existing_position_names - latest_position_names)
):
try:
User.update(faction_position=None).join(FactionPosition).where(
User.faction_position.pid == deleted_position.pid
).execute()
User.update(faction_position=None).where(User.faction_position_id == deleted_position.pid).execute()
existing_positions.where(FactionPosition.name == deleted_position.name).get().delete_instance()
except Exception as e:
logger.exception(e)
Expand Down

0 comments on commit 1a48c61

Please sign in to comment.