Update README and csv_uploader to match hardcoded field names

Remove --id-field and --seeding-field args from csv_uploader, hardcode
field names as class constants, and fix the same PATCH/GET bugs. Update
README examples to reflect simplified CLI args.
This commit is contained in:
constantprojects
2026-02-17 15:25:07 -07:00
parent 16eb35f095
commit e7dd24de73
2 changed files with 17 additions and 34 deletions

View File

@@ -16,10 +16,8 @@ python seed_tracker.py \
--id-folder ./torrents \
--bt-backup ~/.local/share/qBittorrent/BT_backup \
--nocodb-url https://noco.example.com \
--table-id tblXXXXX \
--api-token xc-xxxx \
--id-field cXXXXX \
--seeding-field cYYYYY
--table-id xxxxxxxxxxxxx \
--api-token xc-xxxx
```
### CSV Mode (outputs file for manual import)
@@ -38,10 +36,8 @@ python seed_tracker.py \
| `--id-folder` | Yes | Folder containing `{id}.torrent` files |
| `--bt-backup` | Yes | qBittorrent's `BT_backup` folder |
| `--nocodb-url` | API mode | NocoDB base URL |
| `--table-id` | API mode | Table ID (starts with `tbl`) |
| `--table-id` | API mode | Table ID |
| `--api-token` | API mode | API token (`xc-token`) |
| `--id-field` | API mode | Field ID for Id column (starts with `c`) |
| `--seeding-field` | API mode | Field ID for seeding_users column (starts with `c`) |
| `--csv-only` | No | Skip API, output CSV instead |
| `--output` | No | CSV output path (default: `seeding_update.csv`) |
| `--debug` | No | Print API request/response details |
@@ -49,7 +45,6 @@ python seed_tracker.py \
## Finding NocoDB IDs
- **Table ID**: Click `...` next to table name → Copy Table ID
- **Field IDs**: Click field header dropdown → Copy Field ID
---
@@ -63,10 +58,8 @@ Uploads CSV files generated by others (via `--csv-only`) to NocoDB.
python csv_uploader.py \
--csv seeds.csv \
--nocodb-url https://noco.example.com \
--table-id tblXXXXX \
--api-token xc-xxxx \
--id-field cXXXXX \
--seeding-field cYYYYY
--table-id xxxxxxxxxxxxx \
--api-token xc-xxxx
```
## Flags
@@ -77,5 +70,3 @@ python csv_uploader.py \
| `--nocodb-url` | Yes | NocoDB base URL |
| `--table-id` | Yes | Table ID |
| `--api-token` | Yes | API token |
| `--id-field` | Yes | Field ID for Id column |
| `--seeding-field` | Yes | Field ID for seeding_users column |