Skip to content

Commit

Permalink
remove print
Browse files Browse the repository at this point in the history
  • Loading branch information
bovard committed Jun 26, 2024
1 parent 707ba75 commit 05617f4
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ def weighted_random_category(keywords_list):
cat_words = [[cat_entry, len(cat_entry["words"])] for cat_entry in keywords_list]
total_weight = sum([entry[1] for entry in cat_words])
cat = math.floor(random.random() * total_weight)
print("TOTAL WEIGHT", total_weight)
total = 0
for entry in cat_words:
total = total + entry[1]
Expand Down

0 comments on commit 05617f4

Please sign in to comment.