Close the session in get_badge_count_by_type get_badge_count_by_type returns a value while inside a new SQLAlchemy sesson, which causes problems with DB connection pool usage. This should fix that.
Close the session in get_badge_count_by_type
get_badge_count_by_type returns a value while inside a new SQLAlchemy sesson, which causes problems with DB connection pool usage. This should fix that.

magfest/ubersystem,magfest/ubersystem,magfest/ubersystem,magfest/ubersystem