Skip to content

Commit

Permalink
five clues per week
Browse files Browse the repository at this point in the history
  • Loading branch information
ishefi committed Jun 10, 2024
1 parent 3996022 commit 37d7204
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 3 deletions.
2 changes: 1 addition & 1 deletion logic/user_logic.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ class UserClueLogic:
HOT_CLUE_FORMAT = "המילה '{hot_clue}' קרובה למילה הסודית"
NO_MORE_CLUES_STR = "אין יותר רמזים"
CLUE_COOLDOWN_FOR_UNSUBSCRIBED = datetime.timedelta(days=7)
MAX_CLUES_DURING_COOLDOWN = 1
MAX_CLUES_DURING_COOLDOWN = 5
HOT_CLUES_CACHE: dict[str, list[str]] = {}

def __init__(
Expand Down
15 changes: 14 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ sqlmodel = "^0.0.14"
sqlalchemy-libsql = "^0.1.0"
dropbox = "^11.36.2"
pyodbc = "^5.1.0"
milon = "^0.0.1"


[tool.poetry.group.dev.dependencies]
Expand Down
2 changes: 1 addition & 1 deletion static/semantle.js
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ let Semantle = (function() {
clue = "רמזים זמינים רק למשתמשים מחוברים, יש להתחבר";
}
else if (response.status === 402) {
clue = "רמזים זאת הדרך שלנו לומר תודה למי שתרם לסמנטעל. משתמשים שלא תרמו זכאים לרמז אחד בשבוע. אפשר להמשיך לשחק בלי רמזים :)";
clue = "רמזים זאת הדרך שלנו לומר תודה למי שתרם לסמנטעל. משתמשים שלא תרמו זכאים לחמישה רמזים בשבוע. אפשר להמשיך לשחק בלי רמזים :)";
}
} catch (e) {
console.log(e);
Expand Down

0 comments on commit 37d7204

Please sign in to comment.