Update anki scripts
parent
bb54ec3629
commit
4708739c66
|
@ -1,3 +1,3 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
curl localhost:8765 -X POST -d '{"action": "deckNames", "version": 6}' | jq '.result[]' -r
|
curl 127.0.0.1:8765 -X POST -d '{"action": "deckNames", "version": 6}' | jq '.result[]' -r
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
num_to_review=200
|
num_to_review=200
|
||||||
|
|
||||||
# Get current card count from Anki
|
# Get current card count from Anki
|
||||||
count=$(curl -s localhost:8765 -X POST -d '{"action": "getNumCardsReviewedToday", "version": 6}' | jq '.result')
|
count=$(curl -s 127.0.0.1:8765 -X POST -d '{"action": "getNumCardsReviewedToday", "version": 6}' | jq '.result')
|
||||||
|
|
||||||
if [ -z "$count" ]
|
if [ -z "$count" ]
|
||||||
then
|
then
|
||||||
|
|
Loading…
Reference in New Issue