Commit Graph

871 Commits

Author SHA1 Message Date
Joe Dowd
16c68dd51d allow removing own segments with a downvote 2020-08-21 22:32:34 +01:00
Joe Dowd
226197a827 Added logger util and used in place of console log 2020-08-21 15:27:41 +01:00
Ajay Ramachandran
2516634856 Don't allow 0 ms submissions 2020-08-02 12:08:44 -04:00
Ajay Ramachandran
d5a720fa0c Check that start time is not less than zero 2020-08-02 11:58:11 -04:00
Joe Dowd
5ac5c30fd6 import config 2020-07-28 04:32:12 +01:00
Ajay Ramachandran
5fc839513e Merge pull request #105 from Joe-Dowd/proxy-submission
Proxy submission
2020-07-27 21:09:32 -04:00
Ajay Ramachandran
7878336866 Don't return after proxying 2020-07-27 20:53:15 -04:00
Ajay Ramachandran
98b79b042b Return when proxying 2020-07-27 19:54:08 -04:00
Ajay Ramachandran
51fe7d5599 Changed to if statement 2020-07-27 19:53:23 -04:00
Joe Dowd
99c8d5d238 removed log and fixed log typo 2020-07-27 05:56:23 +01:00
Joe Dowd
18f5d656de Aded option to proxy submisissions to another server to persist. 2020-07-27 05:51:49 +01:00
Ajay Ramachandran
fe444560fd Fix shadow hidden endpoint 2020-07-26 11:44:15 -04:00
Ajay Ramachandran
986c9dcf5f Don't show banned users on the leaderboard 2020-07-26 11:26:51 -04:00
Ajay Ramachandran
4bfa5e7de8 Banned users can't vote 2020-07-26 11:13:36 -04:00
Ajay Ramachandran
15fb572b80 Added IP test and potentially improved performance 2020-07-25 21:40:49 -04:00
Ajay Ramachandran
e71680c8e3 Block voting without submitting and on the same IP 2020-07-25 21:35:43 -04:00
Ajay Ramachandran
005e88d169 Merge pull request #92 from Joe-Dowd/mysql-conv
Added ability to query a mysql database
2020-07-25 19:01:57 -04:00
Ajay Ramachandran
84c5a76e90 Merge pull request #100 from ajayyy/experimental
Fix weight not updating properly
2020-07-23 23:36:04 -04:00
Ajay Ramachandran
b6dd109fcb Fix weight not properly 2020-07-23 23:34:31 -04:00
Nanobyte
c2e0c1be95 Fixed mixed up category stats 2020-07-17 03:24:53 +02:00
Nanobyte
b41c633a54 Simplified categoryStats query parameter 2020-07-17 00:51:37 +02:00
Nanobyte
1823305a5e Fixed empty array for categoryStats in getTopUsers 2020-07-16 21:53:09 +02:00
Nanobyte
c4f9515c09 Added categoryStats for getTopUsers 2020-07-14 18:15:23 +02:00
Joe-Dowd
13e4adf18f PR comments resolved 2020-07-10 01:46:09 +01:00
Ajay Ramachandran
adbb176697 Merge pull request #93 from ajayyy/experimental
Remove extra power downvote
2020-07-08 23:02:30 -04:00
Ajay Ramachandran
347f2ab1e1 Remove extra power downvote 2020-07-08 22:46:32 -04:00
Joe-Dowd
46dd16caf9 added ability to query mysql database 2020-07-05 04:14:15 +01:00
Pierre Donias
85dcb39f5e Rework of getSkipSegments 2020-06-03 16:56:40 +02:00
Ajay Ramachandran
aa4574cfde Add category to notification 2020-06-02 19:28:09 -04:00
Ajay Ramachandran
617f075c19 Added semi-colons and spacing 2020-05-28 18:24:02 -04:00
Ajay Ramachandran
ba512f004e sponsorStart, sponsorEnd -> startTime, endTime 2020-05-28 18:23:19 -04:00
Pierre Donias
47d532733b Improve generation of similar sponsors groups
by running a single flat loop
2020-05-28 22:36:47 +02:00
Ajay Ramachandran
73740bc920 Remove submission cap 2020-05-25 22:50:18 -04:00
Ajay Ramachandran
2cbeb50927 Raise max submissions per user to 16 2020-05-25 22:22:53 -04:00
Martijn van der Ven
c7fd603933 Respond Not Found when a prefix is empty 2020-05-23 21:25:38 +02:00
Martijn van der Ven
c2510d302a Limit overlapping segments to just one through weighted randomness 2020-05-23 21:17:47 +02:00
Martijn van der Ven
d8203dce77 Make sure to always insert hashed video ID 2020-05-23 17:57:33 +02:00
Martijn van der Ven
803b1fa505 Add initial version of querying by hash prefix 2020-05-23 17:12:40 +02:00
Martijn van der Ven
ca46f4c9ac Enable database upgrades to run 2020-05-23 17:12:30 +02:00
Ajay Ramachandran
51f760332b Changed getIP to be all lowercase 2020-05-17 01:38:15 -04:00
Ajay Ramachandran
a2caa53664 Only sponsors must be longer than 1 second.
Also added proper error message when submission is too short.
2020-05-16 18:33:16 -04:00
Ajay Ramachandran
88a9628e7e Disable IP ratelimiting 2020-05-16 16:54:51 -04:00
Ajay Ramachandran
34a33bbda1 Fixed voting on non existent submission status in wrong spot 2020-05-16 16:41:55 -04:00
Ajay Ramachandran
261432a7fd Fix isUserTrustworthy missing from voting method 2020-05-16 16:40:18 -04:00
Ajay Ramachandran
06d1c082fb Fix issues with userID getting in voting 2020-05-16 00:42:38 -04:00
Ajay Ramachandran
7f07794ce4 Removed null coalescence operator 2020-05-16 00:15:33 -04:00
Ajay Ramachandran
7b31c40676 Prevent userID errors 2020-05-16 00:12:31 -04:00
Ajay Ramachandran
0315aa67d7 make VIP submissions take priority. 2020-05-16 00:07:56 -04:00
Ajay Ramachandran
3e2ab9c30a Merge pull request #80 from ajayyy/get-ip-fixes
Get IP options
2020-05-15 19:16:19 -04:00
Ajay Ramachandran
ad7d1a53d9 Added string check to getIP 2020-05-15 19:14:30 -04:00