JuicyData / TheOrangeAlliance2016-2017

The Orange Alliance, FIRST Tech Challenge; A database for event scoring and reporting with live data analysis. The data is juicy!
theorangealliance.net
MIT License
5 stars 0 forks source link

Dictionary keys for MatchInput and AverageScores are not the same #41

Closed RyGuy101 closed 7 years ago

RyGuy101 commented 7 years ago

I will make all dictionary keys for game objectives consistent by editing the San Diego Regional MongoDB collection and changing the code.

There is also an unnecessary translation between strings in input-data.php and input.php. I will get rid of this and ADD a similar function to potato.php to translate from dictionary keys to display names. This makes more sense because all backend keys should be consistent, while we should not rely on these keys as display names themselves.

For example, we should always use "CapBallInCenter" in the backend, not switch between "In Center Vortex" and "CapBallInCenter." In addition, if "In Center Vortex" is what we want displayed on the website, we should choose that display name independent of the key used in the backend.

This will help in implementing modularity for the game objectives.