[extensions-web] cron: do not remove popularity items for now.



commit 6022c7252d852d430f351e156001e25f148ac257
Author: Yuri Konotopov <ykonotopov gnome org>
Date:   Fri Dec 14 21:12:34 2018 +0400

    cron: do not remove popularity items for now.
    
    Overall process should be reviewed.

 bin/sweettooth-cron-update | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/bin/sweettooth-cron-update b/bin/sweettooth-cron-update
index 9f3f379..929cb23 100755
--- a/bin/sweettooth-cron-update
+++ b/bin/sweettooth-cron-update
@@ -27,4 +27,5 @@ for ext in Extension.objects.all():
         ext.popularity = popularity_data['popularity']
         ext.save(replace_metadata_json=False)
 
-    ext.popularity_items.filter(date__lte=date).delete()
+    # TODO: review and restore cleanup
+    # ext.popularity_items.filter(date__lte=date).delete()


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]