Summary
So I loosely remixed this off of teinturman's ring sizer. (Big thanks for all the data and country matching logic I borrowed from him)
In short, this is more a template I'll use later to make rings more customizable, and I'll clean up the code soon-ish. With school starting it'll be more of a wait and see.
update 1/16/17
Fixed integer sizes from being demoted from a string to an int, by casting sizeValue as a str where applicable.
update 1/20/17
Made the default ring better.
How I Designed This
Once I clean up the code I'll explain more how it all works. In a nutshell, it goes through some if else blocks to decide which country you're in, then will call the ring() module and send it the ring's diameter if the size you selected works. Otherwise you'll just end up with a weird cylinder.
Etiquetas
Fuente del modelo
