Initial sanitized code sync
This commit is contained in:
7
fix_cards.sh
Normal file
7
fix_cards.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
rm -f /root/gpt-home/card_cache.json
|
||||
sqlite3 /root/gpt-home/gptplus.db "UPDATE cards SET status='active', bind_count=0 WHERE status='exhausted';"
|
||||
echo "=== Cards ==="
|
||||
sqlite3 /root/gpt-home/gptplus.db "SELECT id, status, bind_count, max_binds FROM cards;"
|
||||
echo "=== Card Codes ==="
|
||||
sqlite3 /root/gpt-home/gptplus.db "SELECT id, substr(code,1,8)||'...' as code, status FROM card_codes;"
|
||||
Reference in New Issue
Block a user