X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/1a949f7c97dc2f34c135f5cdf088df2927d3d652..36fcab67d243ffcdfed17b4a89c96661e336e129:/forum/badges/__init__.py diff --git a/forum/badges/__init__.py b/forum/badges/__init__.py index 421348f..c413e82 100644 --- a/forum/badges/__init__.py +++ b/forum/badges/__init__.py @@ -1,10 +1,6 @@ -import re +from forum.modules import get_modules_script -from forum.badges.base import AbstractBadge -from forum.modules import get_modules_script_classes +get_modules_script('badges') + +from base import BadgesMeta -ALL_BADGES = [ - cls() for name, cls - in get_modules_script_classes('badges', AbstractBadge).items() - if not re.search('AbstractBadge$', name) - ]