From f5b3671757c160d7c1c2244114f6dd2b439b54be Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Sat, 25 Nov 2023 13:00:10 -0600 Subject: [PATCH] refactor: use more random tags --- src/components/tag.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/tag.nim b/src/components/tag.nim index 907f156..efd850b 100644 --- a/src/components/tag.nim +++ b/src/components/tag.nim @@ -31,7 +31,7 @@ proc selectRandomTags*(ctx: Context): seq[kstring] = for tag, cnt in tagCounts: if cnt > 3: tags.add tag - while result.len < 5: + while result.len < 10: let tag = tags.sample() if tag notin result: result.add tag