Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -55,10 +55,10 @@ def is_recent_news(time_str):
|
|
55 |
|
56 |
time_str = time_str.lower().strip()
|
57 |
|
58 |
-
if "1 day ago" in time_str:
|
59 |
return True
|
60 |
|
61 |
-
if "hours ago" in time_str:
|
62 |
return True
|
63 |
|
64 |
return False
|
|
|
55 |
|
56 |
time_str = time_str.lower().strip()
|
57 |
|
58 |
+
if "1 day ago " in time_str:
|
59 |
return True
|
60 |
|
61 |
+
if "hours ago " in time_str:
|
62 |
return True
|
63 |
|
64 |
return False
|