summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/main.py b/app/main.py
index 51bac0d..9b51b57 100644
--- a/app/main.py
+++ b/app/main.py
@@ -71,7 +71,7 @@ def get_expiry_date(username):
def within_range(x, y, r):
- return (x - y) > r
+ return x > y and abs(x - y) <= r
def get_today_article(user_word_list, articleID):