Skip to content

Commit

Permalink
fix: Unset worker team on 'None'
Browse files Browse the repository at this point in the history
  • Loading branch information
bosconian-dynamics committed Jan 29, 2025
1 parent 6e17062 commit 17ec371
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion horde/classes/base/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ def set_info(self, new_info):
return "OK"

def set_team(self, new_team):
self.team_id = new_team.id
self.team_id = new_team.id if new_team else None
db.session.commit()
return "OK"

Expand Down

0 comments on commit 17ec371

Please sign in to comment.