Skip to content

Commit

Permalink
fix(api): fix CN group count
Browse files Browse the repository at this point in the history
  • Loading branch information
ernado committed Apr 17, 2024
1 parent bb7a4e7 commit 1feedff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/api/badge.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ func generateBadgePath(name, text, style string) string {
}
func (s Server) GetTelegramBadge(ctx context.Context, params oas.GetTelegramBadgeParams) (rr oas.GetTelegramBadgeOK, err error) {
members := map[string]int{
"gotd_en": 237,
"gotd_ru": 234,
"gotd_cn": 15,
"gotd_en": 237,
"gotd_ru": 234,
"gotd_zhcn": 15,
}[params.GroupName]
_ = s.tg // TODO(ernado): fetch actual data.
title := params.Title.Or(params.GroupName)
Expand Down

0 comments on commit 1feedff

Please sign in to comment.