Commit graph

1516 commits

Author SHA1 Message Date
Ajay Ramachandran
463a48f33a Added totals api endpoint 2019-08-03 12:04:22 -04:00
Ajay Ramachandran
f449d05a38
Merge pull request #13 from ajayyy/experimental
Raised stats limit to 50
2019-08-03 00:24:11 -04:00
Ajay Ramachandran
580a9d9eba Raised stats limit to 50 2019-08-03 00:23:43 -04:00
Ajay Ramachandran
094a2fb2a0
Merge pull request #12 from ajayyy/experimental
Added stats endpoint
2019-08-03 00:13:52 -04:00
Ajay Ramachandran
4dca4081c1 Added api endpoint to get the top users 2019-08-03 00:13:21 -04:00
Ajay Ramachandran
c9ccc409a3
Merge pull request #10 from OfficialNoob/patch-1
Added hash function and BehindProxy bool
2019-07-31 23:36:12 -04:00
Ajay Ramachandran
d5d33f0e9b Reformatted and fixed missing parameters. 2019-07-31 23:32:25 -04:00
Ajay Ramachandran
dfd8d84e85
Merge pull request #11 from ajayyy/experimental
Raised cutoff due to low amount of users
2019-07-30 19:32:28 -04:00
Ajay Ramachandran
f5794f1fc3 Raised cutoff due to low amount of users. 2019-07-30 19:31:56 -04:00
Official Noob
c67fb34588
Removed uuidv1 and added GetIP() 2019-07-30 18:43:23 +01:00
Official Noob
af1ae4346f
Added hash function and BehindProxy bool 2019-07-30 18:14:25 +01:00
Ajay Ramachandran
9c132c5089
Merge pull request #9 from ajayyy/experimental
Privacy + Security Additions
2019-07-28 23:01:35 -04:00
Ajay Ramachandran
4e732b6367 Made votes anonymous. 2019-07-28 23:00:54 -04:00
Ajay Ramachandran
3720681f84 Made IP addresses private. 2019-07-28 22:58:20 -04:00
Ajay Ramachandran
2b16872936
Merge pull request #8 from ajayyy/experimental
Fixed NaN check not correct
2019-07-28 16:06:00 -04:00
Ajay Ramachandran
dadbf8026e Fixed NaN check not correct. 2019-07-28 16:05:23 -04:00
Ajay Ramachandran
fd6071f8d6 Removed extra comment. 2019-07-26 17:15:42 -04:00
Ajay Ramachandran
1148803671
Merge pull request #7 from ajayyy/experimental
Fixed NaN crashing the server
2019-07-26 15:20:56 -04:00
Ajay Ramachandran
4379660b01 Fixed NaN crashing the server. 2019-07-26 15:20:34 -04:00
Ajay Ramachandran
51efb9a5c1
Merge pull request #6 from ajayyy/experimental
Added hashing to userIDs and changed up how the UUID is created
2019-07-25 16:59:36 -04:00
Ajay Ramachandran
abfbba2ad0 Fixed server crash. 2019-07-25 16:56:06 -04:00
Ajay Ramachandran
7e041e5b49 Prevented backwards sponsor times. 2019-07-25 16:54:43 -04:00
Ajay Ramachandran
d7dec47de7 Made the UUID a hash of the input instead of random. 2019-07-25 16:48:13 -04:00
Ajay Ramachandran
71527cc4b1 Switched back to sha256, sha512 is just too long. 2019-07-25 16:36:53 -04:00
Ajay Ramachandran
5fbe580c08 Hash the userIDs 2019-07-25 16:35:08 -04:00
Ajay Ramachandran
c59372dd62
Merge pull request #5 from ajayyy/experimental
Viewcount monitoring
2019-07-23 20:07:09 -04:00
Ajay Ramachandran
ab0631ff63 Prevented sponsor segments less than 1 seconds from being submitted. 2019-07-23 19:06:43 -04:00
Ajay Ramachandran
db8c2e76e5 Updated posting to work with extra database column. 2019-07-23 18:31:42 -04:00
Ajay Ramachandran
11c099c3dc Made server save and report viewCount. 2019-07-23 17:59:19 -04:00
Ajay Ramachandran
9d0e479b90
Merge pull request #4 from ajayyy/experimental
Ratelimiting and improved IP hashing
2019-07-22 19:27:43 -04:00
Ajay Ramachandran
cd36e2b64b Made it run the hash function 5000 times to ensure no one will brute force the IPs. 2019-07-22 17:10:23 -04:00
Ajay Ramachandran
930c0bc6a3 Added rate limit per day per IP. 2019-07-21 22:06:01 -04:00
Ajay Ramachandran
5a5118a7b0 Made it order the sponsor times by start time. 2019-07-20 21:48:08 -04:00
Ajay Ramachandran
5e3c8a3b15 Fixed submissions being broken. 2019-07-20 15:29:31 -04:00
Ajay Ramachandran
a0e63e7326 Preventing voting twice accept for changing vote. 2019-07-19 17:00:50 -04:00
Ajay Ramachandran
27a6741d3e
Update README.MD 2019-07-17 22:04:04 -04:00
Ajay Ramachandran
6850414a27 Replaced typeof with proper undefined check 2019-07-17 21:58:40 -04:00
Ajay Ramachandran
1a603082f5
Merge pull request #3 from ajayyy/experimental
Fixed issues caused by last pull request
2019-07-17 19:43:16 -04:00
Ajay Ramachandran
03fcda5e3b Fixed post method not setting a default for votes. 2019-07-17 19:09:45 -04:00
Ajay Ramachandran
a213d2be02 Fixed it not checking if there are more than 4 choices to choose from. 2019-07-17 17:13:43 -04:00
Ajay Ramachandran
0e50314cb6
Merge pull request #2 from ajayyy/experimental
Added voting and new weighted random returns based on votes
2019-07-17 16:05:52 -04:00
Ajay Ramachandran
79fd1fe95e Made it use the sum of votes from choiceGroups when deciding the top 4. 2019-07-17 15:46:38 -04:00
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