Skip to content

Commit

Permalink
Make sure they're integers
Browse files Browse the repository at this point in the history
  • Loading branch information
joecorall committed Dec 4, 2024
1 parent af7f9c6 commit 98aa4bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/insert-nids.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ fi
# extract sheet ID from https://docs.google.com/spreadsheets/d/foo/edit?gid=0#gid=0
SHEET_ID=$(echo "$URL" | sed -n 's|.*/d/\(.*\)|\1|p')
API_URL="https://sheets.googleapis.com/v4/spreadsheets/$SHEET_ID/values/Sheet1!D2:append"
PAYLOAD=$(tail +4 /tmp/rollback.csv | jq -R '[.]' | jq -s '{"values": .}')
PAYLOAD=$(tail +4 /tmp/rollback.csv | jq -R 'tonumber? | [if . == null then empty else . end]' | jq -s '{"values": [.[] | . ]}')

STATUS=$(curl -s -X POST \
-o /tmp/gsup.log \
Expand Down

0 comments on commit 98aa4bf

Please sign in to comment.