diff --git a/new_captcha_user.sh b/new_captcha_user.sh new file mode 100755 index 0000000..fb20dff --- /dev/null +++ b/new_captcha_user.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +curl -X POST https://captcha.foxarmy.org/api/user/register -H 'Content-Type: application/json' -H "Authorization: Bearer $1" --data-raw "{\"username\":\"$2\", \"password\":\"$3\"}" diff --git a/stats.psql b/stats.psql new file mode 100644 index 0000000..1de95fe --- /dev/null +++ b/stats.psql @@ -0,0 +1 @@ +select users.id, username, (select count(*) from captchas where submitter = users.id) AS amount_solved from users JOIN captchas on submitter = users.id GROUP BY users.id ORDER BY amount_solved DESC;