mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-20 12:24:59 +00:00
fix: Add missing math import in 30k-image.py
This commit is contained in:
parent
7b97f93051
commit
999eb86d7a
1 changed files with 1 additions and 2 deletions
|
@ -6,6 +6,7 @@ This creates a shareable social media graphic with confetti animation.
|
|||
|
||||
import argparse
|
||||
import base64
|
||||
import math
|
||||
import os
|
||||
import random
|
||||
from pathlib import Path
|
||||
|
@ -100,8 +101,6 @@ def generate_confetti(count=150, width=DEFAULT_WIDTH, height=DEFAULT_HEIGHT):
|
|||
|
||||
def generate_celebration_svg(output_path=None, width=DEFAULT_WIDTH, height=DEFAULT_HEIGHT):
|
||||
"""Generate a celebratory SVG for 30K GitHub stars."""
|
||||
# Import math here to avoid the error in generate_confetti
|
||||
import math
|
||||
|
||||
# Font embedding
|
||||
font_data = embed_font()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue