From 999eb86d7a3b6d8bcf4195cf668a64f4d96607b5 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Wed, 26 Mar 2025 07:01:51 -1000 Subject: [PATCH] fix: Add missing math import in 30k-image.py --- scripts/30k-image.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/30k-image.py b/scripts/30k-image.py index cfee7cd9d..a15d5e547 100644 --- a/scripts/30k-image.py +++ b/scripts/30k-image.py @@ -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()