wuvt / trackman

WUVT's track logging web-app
GNU Affero General Public License v3.0
4 stars 3 forks source link

Automation can log using wrong DJSet #93

Closed mutantmonkey closed 4 years ago

mutantmonkey commented 4 years ago

The Local Zone DJ reported earlier today that there were tracks being logged that he was not logging. After some investigation, I determined that automation began using the existing Local Zone DJSet instead of creating a new one.

I believe that this is caused because neither logout_all nor enable_automation delete the value of the onair_djset_id Redis key, and the existing one is used without verification. To fix this, I propose deleting onair_djset_id at the beginning of logout_all.