bastislack / highline-freestyle

Webapp for Highline Freestyle
GNU General Public License v3.0
10 stars 9 forks source link

Tricks levels shown twice with different tricks in them #271

Open bastislack opened 1 year ago

bastislack commented 1 year ago

After the update I had each level twice and some tricks were in one level, some in the other one. There was also an 'empty' trick.

https://github.com/bastislack/highline-freestyle/assets/74077179/794ff104-0f02-49df-b51f-00bfcf77ad0e

weberax commented 11 months ago

This sounds like some mistake in updating the database, resetting it completely should fix it. But exporting and importing the user data before and after the reset could be worth a try.

I guess the exact problem is, that in the local userTricks table some of the user tricks have empty attributes which overwrite the default values of that corresponding predefinedTrick.

weberax commented 11 months ago

And the sorting breaks (having multiple times the same level), if some of the tricks don't have a difficulty level.