[extensions-web] Don't re-save metadata.json in the cron job



commit 78a7b654c08ec2e72406cd7dda91cf838743656a
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Mon Jan 30 12:05:39 2012 -0500

    Don't re-save metadata.json in the cron job
    
    It's not worth our time since nothing is changing

 bin/sweettooth-cron-update |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/bin/sweettooth-cron-update b/bin/sweettooth-cron-update
index 52b2675..30405c2 100755
--- a/bin/sweettooth-cron-update
+++ b/bin/sweettooth-cron-update
@@ -19,4 +19,4 @@ for ext in Extension.objects.all():
             .filter(date__gt=(datetime.datetime.now()-datetime.timedelta(days=7)))
             .aggregate(popularity=Sum('offset')))
     ext.popularity = data['popularity']
-    ext.save()
+    ext.save(replace_metadata_json=False)



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