Increment token statistics (delegates to specific methods)
(self, token_id: int, stat_type: str)
| 1200 | |
| 1201 | # Token stats operations (kept for compatibility, now delegates to specific methods) |
| 1202 | async def increment_token_stats(self, token_id: int, stat_type: str): |
| 1203 | """Increment token statistics (delegates to specific methods)""" |
| 1204 | if stat_type == "image": |
| 1205 | await self.increment_image_count(token_id) |
| 1206 | elif stat_type == "video": |
| 1207 | await self.increment_video_count(token_id) |
| 1208 | elif stat_type == "error": |
| 1209 | await self.increment_error_count(token_id) |
| 1210 | |
| 1211 | async def get_token_stats(self, token_id: int) -> Optional[TokenStats]: |
| 1212 | """Get token statistics""" |
no test coverage detected