This is an automated email from the ASF dual-hosted git repository.

brondsem pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/allura.git


The following commit(s) were added to refs/heads/master by this push:
     new c0a6fa44b make TestClearOldNotifications pass even when it runs really 
fast (executing on same timestamp)
c0a6fa44b is described below

commit c0a6fa44b03b73f24b706a32551fc695a1209ac9
Author: Dave Brondsema <dbronds...@slashdotmedia.com>
AuthorDate: Fri May 17 16:44:03 2024 -0400

    make TestClearOldNotifications pass even when it runs really fast 
(executing on same timestamp)
---
 Allura/allura/scripts/clear_old_notifications.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Allura/allura/scripts/clear_old_notifications.py 
b/Allura/allura/scripts/clear_old_notifications.py
index 7ad3d4921..61923e1d7 100644
--- a/Allura/allura/scripts/clear_old_notifications.py
+++ b/Allura/allura/scripts/clear_old_notifications.py
@@ -40,7 +40,7 @@ class ClearOldNotifications(ScriptTask):
     def execute(cls, options):
         before = datetime.utcnow() - timedelta(days=options.back_days)
         M.Notification.query.remove({
-            'pubdate': {'$lt': before}
+            'pubdate': {'$lte': before}
         })
 
 

Reply via email to