mirror of
https://github.com/jongracecox/anybadge.git
synced 2026-01-11 22:47:18 +01:00
Within a single Python session anybadge will use different SVG mask IDs. This is an attempt to fix the issue where SVG files displayed in the same HTML will re-use the same mask, and therefore appear with the same dimensions. Uses a singleton on the class to maintain a sequence of mask ids. Includes unittests to ensure new ID is used for each badge.