fix: add fixed marketplace offers endpoint to avoid AttributeError
Some checks failed
API Endpoint Tests / test-api-endpoints (push) Successful in 37s
Integration Tests / test-service-integration (push) Successful in 57s
Python Tests / test-python (push) Failing after 4m15s
CLI Tests / test-cli (push) Failing after 6m48s
Security Scanning / security-scan (push) Successful in 2m16s

Marketplace Offers Router Enhancement:
 NEW ENDPOINT: GET /offers for listing all marketplace offers
- Added fixed version to avoid AttributeError from GlobalMarketplaceService
- Uses direct database query with SQLModel select
- Safely extracts offer attributes with fallback defaults
- Returns structured offer data with GPU specs and metadata

 ENDPOINT FEATURES:
🔧 Direct Query: Bypasses service layer to avoid attribute
This commit is contained in:
aitbc
2026-03-30 22:34:05 +02:00
parent 0985308331
commit f646bd7ed4
5 changed files with 849 additions and 0 deletions

1
aitbc-miner Symbolic link
View File

@@ -0,0 +1 @@
/opt/aitbc/cli/miner_cli.py