(self, settings, device_config)
| 19 | return template_params |
| 20 | |
| 21 | def generate_image(self, settings, device_config): |
| 22 | try: |
| 23 | github_type = settings.get('githubType', 'contributions') |
| 24 | |
| 25 | if github_type == 'contributions': |
| 26 | return contributions_generate_image(self, settings, device_config) |
| 27 | elif github_type == 'sponsors': |
| 28 | return sponsors_generate_image(self, settings, device_config) |
| 29 | elif github_type == 'stars': |
| 30 | return stars_generate_image(self, settings, device_config) |
| 31 | else: |
| 32 | logger.error(f"Unknown GitHub type: {github_type}") |
| 33 | raise ValueError(f"Unknown GitHub type: {github_type}") |
| 34 | except Exception as e: |
| 35 | logger.error(f"GitHub image generation failed: {str(e)}") |
| 36 | raise |
nothing calls this directly
no test coverage detected