cubingusa / org

The cubingusa.org website
https://cubingusa.org
8 stars 7 forks source link

Fix indentation in DB load code. #250

Closed timreyn closed 2 years ago

timreyn commented 2 years ago

As written, we only load the state of one arbitrary user and store it in Persons. This usually doesn't matter, but after creating a fresh VM, we overwrite the entire WCA datastore since we don't have the previous copy of the WCA DB. So this wiped out all of the state rankings, by not copying state from User to Person (and then to RankSingle / RankAverage).