created function to abbreviate team names#401
Conversation
|
can take a look at abbreviations to see if something else is preferred. ex: UCSB vs. UC Santa Barbara |
|
nice work, do you think we wanna have abbreviations on the dashboard or nah? |
|
I had a similar problem when doing the abbreviations, and I think it has to do with how the data is stored. It might be the database has University of California, Santa Barbara (M) (M), so it only strips one of the M's, but not fully sure though. Are you able to check for this on your end before I make any changes? |
|
nice catch, yep I think someone uploaded the team incorrectly. fyi how it works is: in /upload-team, people can add a team to the database. Before adding, we have a mini modification that creates two entries in the db, "{name} (M)" and "{name} (W)". generally all of this is hidden from the user but is accessible when uploading matches etc. looks like someone added name=ucsb (M) so it appended (M) and (W) twice (more random fyi) How I fixed this:
speaking of foreign key/reference etc, I made a new issue about this #403 ; if ur interested in that kind of work (more system design/db schema/backend infra) feel free to pick it up |
|
sounds good! |

No description provided.