| """ | |
| Cards database operations. | |
| DEPRECATED: Cards are now handled by the remote Cards Microservice. | |
| This file is kept as a stub so old imports don't crash. | |
| All actual card operations go through cards_client.py | |
| """ | |
| def init_cards_db(): | |
| """No-op. Cards are on external microservice.""" | |
| print(f" ✅ Cards DB: EXTERNAL (Cards Microservice)") | |
| def load_cards_db(): | |
| """DEPRECATED - returns empty dict.""" | |
| return {} | |
| def save_cards_db(data): | |
| """DEPRECATED - no-op.""" | |
| pass | |
| def get_card(code): | |
| """DEPRECATED - use cards_client.validate_card() instead.""" | |
| return None | |
| def set_card(code, card_data): | |
| """DEPRECATED - use Cards Microservice admin API.""" | |
| pass | |
| def card_exists(code): | |
| """DEPRECATED - use cards_client.validate_card() instead.""" | |
| return False |