Commit graph

22 commits

Author SHA1 Message Date
Ajay Ramachandran
60c125f4ce Made functions use more generic variable names. 2019-07-17 14:44:23 -04:00
Ajay Ramachandran
24ed3143ed Uses weighted random to ensure a maximum of 4 sponsor times are returned 2019-07-17 14:41:10 -04:00
Ajay Ramachandran
5c24a6109c Moved weighted random into separate function. 2019-07-16 22:51:17 -04:00
Ajay Ramachandran
a4affb9e4d Made it so that -2 to 0 votes has a chance in the randomizer. 2019-07-15 22:32:08 -04:00
Ajay Ramachandran
ab3facdbcf Changed to point of convergence to 10. This can be changed if this service gets popular. 2019-07-15 22:25:22 -04:00
Ajay Ramachandran
9ab902dc36 Added new sqrt formula to decide which sponsor time to give out. 2019-07-15 22:18:35 -04:00
Ajay Ramachandran
22905b6acd Made the server return a list of UUIDs along with the list of sponsor times. 2019-07-15 16:54:27 -04:00
Ajay Ramachandran
4e5ef0d040 Added voting endpoint. 2019-07-15 16:40:47 -04:00
Ajay Ramachandran
9b812721ad Made it so that each user can only submit 4 sponsorship segments per video 2019-07-11 19:45:55 -04:00
Ajay Ramachandran
1afd720241 Changed 400 error code to 409 2019-07-10 23:38:28 -04:00
Ajay Ramachandran
da9fc1f4a1 Made it save the time the data was submitted (in unix time) 2019-07-10 23:34:37 -04:00
Ajay Ramachandran
12745531e2 Added duplication check. 2019-07-10 22:45:15 -04:00
Ajay Ramachandran
a2889925e7 Added global salt for hashed ips 2019-07-10 22:07:39 -04:00
Ajay Ramachandran
05da836384 Made the server save a hash of their ip with the data. 2019-07-10 22:00:28 -04:00
Ajay Ramachandran
16b2b22bc0 Added support for receiving a userID 2019-07-10 19:25:49 -04:00
Ajay Ramachandran
b2a54716c9 Fixed 404 check not properly working 2019-07-09 16:43:17 -04:00
Ajay Ramachandran
5cc5a7af0d Made it send 404 when nothing is found 2019-07-09 16:31:04 -04:00
Ajay Ramachandran
367dc82d85 Added support for float times 2019-07-09 15:20:10 -04:00
Ajay Ramachandran
b167b0bc48 Fixed CORS issues 2019-07-09 15:12:08 -04:00
Ajay Ramachandran
c0efc89083 Changed api endpoints 2019-07-09 14:44:40 -04:00
Ajay Ramachandran
7bf99e35fe Added post function and fixed database download function 2019-07-09 14:42:59 -04:00
Ajay Ramachandran
ca479bc2f7 Initial commit 2019-07-09 13:48:03 -04:00