jhauserw3241 / cdcdb-webserver

Python3/Flask web server for DB final project
https://cdcdb.system33.pw
1 stars 1 forks source link

Student major should be shown as-is if no correction found #15

Closed Deedasmi closed 7 years ago

Deedasmi commented 7 years ago

IS -> IS (Information Systems) MBA ->

MBA should just show MBA unless it exists in your correction lookup table. Currently displays nothing.

pastly commented 7 years ago

Can I/should I do something like this?

if student.major.tolower() == 'unknown': return ''

I don't like seeing so many "Unknown"s is all, and that's where this bug came from.

Deedasmi commented 7 years ago

Yeah, works for me.