Update anki scripts

master
Hektor Misplon 2024-01-28 21:20:49 +01:00
parent bb54ec3629
commit 4708739c66
Signed by: hektor
GPG Key ID: 5151AF79E723F21C
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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