I know it is a really terrible way of doing it but I couldn't find the best way of sending data to my views in flask by that time.