Skip to content

Commit 88176ce

Browse files
committed
narrow the number of valid "today words"
1 parent f38b28c commit 88176ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def fetch_today_info(): # Set seed to current day in order to generate same wor
3333
random.seed(app.current_day)
3434

3535
# Fetch info
36-
app.puzzle_number = random.randint(0, 5000) # Only fetch words from the first 5000 to avoid obscure words
36+
app.puzzle_number = random.randint(0, 3000) # Only fetch words from the first 3000 to avoid obscure words
3737
app.current_word = model.index_to_key[app.puzzle_number]
3838
app.top_1000 = model.most_similar(app.current_word, topn=1000)
3939
app.top_1000_words = list(map(lambda x: x[0], app.top_1000))

0 commit comments

Comments
 (0)