Skip to content

Commit

Permalink
feat(template): Add links to diagram of each article
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhbert committed Feb 11, 2025
1 parent cce87b1 commit 5984d51
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/db_service/habr_sqlite.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ import (
"gorm.io/gorm/logger"
"log"
"os"
"slices"
"sort"
"strconv"
"strings"
Expand Down Expand Up @@ -457,6 +458,7 @@ func GetEachArticleStats(db *gorm.DB) []structs.EachArticleStat {
eas.Stats = append(eas.Stats, st)
}
eachArticleStats = append(eachArticleStats, eas)
slices.Reverse(eachArticleStats)
}
return eachArticleStats
}

0 comments on commit 5984d51

Please sign in to comment.