fix: use 'or' operator instead of get() default for wallet provider fallback
Some checks failed
Cross-Node Transaction Testing / transaction-test (push) Has been cancelled
Deploy to Testnet / deploy-testnet (push) Has been cancelled
Integration Tests / test-service-integration (push) Has been cancelled
Multi-Node Stress Testing / stress-test (push) Has been cancelled
Python Tests / test-python (push) Has been cancelled
Security Scanning / security-scan (push) Has been cancelled
Some checks failed
Cross-Node Transaction Testing / transaction-test (push) Has been cancelled
Deploy to Testnet / deploy-testnet (push) Has been cancelled
Integration Tests / test-service-integration (push) Has been cancelled
Multi-Node Stress Testing / stress-test (push) Has been cancelled
Python Tests / test-python (push) Has been cancelled
Security Scanning / security-scan (push) Has been cancelled
- Changed bid_data provider from .get('wallet', 'unknown') to .get('wallet') or 'unknown'
- Ensures None values from get() are properly handled with fallback to 'unknown'
This commit is contained in:
@@ -87,7 +87,7 @@ class MarketplaceService:
|
||||
|
||||
# Create a bid for the offer
|
||||
bid_data = {
|
||||
'provider': booking_data.get('wallet', 'unknown'),
|
||||
'provider': booking_data.get('wallet') or 'unknown',
|
||||
'capacity': booking_data.get('duration_hours', 1.0),
|
||||
'price': booking_data.get('price', offer.price),
|
||||
'status': 'pending',
|
||||
|
||||
Reference in New Issue
Block a user