mariusmucenicu / knowlift

A software that will keep you sharp between the ears.
https://knowlift.com/
GNU General Public License v3.0
0 stars 1 forks source link

Change fetch_game_level to account for both ints and strs #194

Closed mariusmucenicu closed 5 years ago

mariusmucenicu commented 5 years ago

This function fetches a game level based on the choice of a user. The choices are sent as a string although if we were to change this to send it as an int (from HTML) this would fail because of the strip() call before converting to int. The strip call is unnecessary because Python itself does remove any leading and trailing whitespace from the string before converting