just give reviews
This commit is contained in:
parent
5717b3a38f
commit
8c79526253
1 changed files with 1 additions and 5 deletions
|
|
@ -1,18 +1,14 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
#!nix-shell -i bash -p jq curl
|
#!nix-shell -i bash -p jq curl
|
||||||
|
|
||||||
get_wanikani()
|
get_wanikani()
|
||||||
{
|
{
|
||||||
wanikani_reviews=$(curl -s -H "Authorization: Bearer 2da24e4a-ba89-4c4a-9047-d08f21e9dd01" "https://api.wanikani.com/v2/assignments?immediately_available_for_review=true" | jq '.total_count')
|
wanikani_reviews=$(curl -s -H "Authorization: Bearer 2da24e4a-ba89-4c4a-9047-d08f21e9dd01" "https://api.wanikani.com/v2/assignments?immediately_available_for_review=true" | jq '.total_count')
|
||||||
wanikani_lessons=$(curl -s -H "Authorization: Bearer 2da24e4a-ba89-4c4a-9047-d08f21e9dd01" "https://api.wanikani.com/v2/assignments?immediately_available_for_lessons=true" | jq '.total_count')
|
echo "$wanikani_reviews reviews"
|
||||||
|
|
||||||
echo "$wanikani_lessons lessons $wanikani_reviews reviews"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
main()
|
main()
|
||||||
{
|
{
|
||||||
get_wanikani
|
get_wanikani
|
||||||
# sleep for 10 minutes
|
|
||||||
sleep 600
|
sleep 600
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue