From 4708739c669b963a764c467fe6f1e68d093cdd62 Mon Sep 17 00:00:00 2001 From: Hektor Misplon Date: Sun, 28 Jan 2024 21:20:49 +0100 Subject: [PATCH] Update anki scripts --- .bin/get-anki-decks | 2 +- .bin/sb-anki | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.bin/get-anki-decks b/.bin/get-anki-decks index b576cea..cf262b1 100755 --- a/.bin/get-anki-decks +++ b/.bin/get-anki-decks @@ -1,3 +1,3 @@ #!/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 diff --git a/.bin/sb-anki b/.bin/sb-anki index 96919ca..e0a57eb 100755 --- a/.bin/sb-anki +++ b/.bin/sb-anki @@ -5,7 +5,7 @@ num_to_review=200 # 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" ] then