refactor: use more random tags

This commit is contained in:
Daylin Morgan 2023-11-25 13:00:10 -06:00
parent b5dfc04040
commit f5b3671757
Signed by: daylin
GPG key ID: C1E52E7DD81DF79F

View file

@ -31,7 +31,7 @@ proc selectRandomTags*(ctx: Context): seq[kstring] =
for tag, cnt in tagCounts: for tag, cnt in tagCounts:
if cnt > 3: tags.add tag if cnt > 3: tags.add tag
while result.len < 5: while result.len < 10:
let tag = tags.sample() let tag = tags.sample()
if tag notin result: if tag notin result:
result.add tag result.add tag