The OP deleted part of the code. He was using something called pythonanywhere and I'm assuming it did something to the page to make it take any rarity but he deleted his part of the code I guess.
The OP deleted part of the code. He was using something called pythonanywhere and I'm assuming it did something to the page to make it take any rarity but he deleted his part of the code I guess.