mirror of
https://github.com/daylinmorgan/nimpkgs.git
synced 2024-12-22 02:50:44 -06:00
refactor: use more random tags
This commit is contained in:
parent
b5dfc04040
commit
f5b3671757
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue