diff --git a/crawler.py b/crawler.py
index 0cb26de23edf4fdca90234b799562ec9a9cd797c..9a74b312fae90604170228b5d080d700b5e99e11 100644
--- a/crawler.py
+++ b/crawler.py
@@ -27,7 +27,7 @@ def get_menus_by_days(location: Location):
     global cached_responses
     global cached_update_times
 
-    if location in cached_update_times and cached_update_times[location] < datetime.now() + timedelta(minutes=5):
+    if location in cached_update_times and cached_update_times[location] + timedelta(minutes=5) > datetime.now():
         return (cached_responses[location], cached_update_times[location])
 
     response = requests.get(location.value)