Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Balogh <jbalogh@mozilla.com>2010-09-03 20:12:52 (GMT)
committer Jeff Balogh <jbalogh@mozilla.com>2010-09-03 20:12:52 (GMT)
commitdb67207d37da95294fde38165e3cf0f58a81a010 (patch)
tree68c63fed94084200903fa63faf7e9880fe7a0abb
parentfb1f5259bf84acb977befaf95f28cda1299fda7c (diff)
only email about collections before the new code
-rw-r--r--apps/users/management/commands/collection_emailer.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/users/management/commands/collection_emailer.py b/apps/users/management/commands/collection_emailer.py
index fdad8c8..ad4c897 100644
--- a/apps/users/management/commands/collection_emailer.py
+++ b/apps/users/management/commands/collection_emailer.py
@@ -49,7 +49,8 @@ counter = 0
def send_to_ids(ids, published, publishers, cxn):
from bandwagon.models import Collection
global counter
- qs = Collection.uncached.select_related('user')
+ qs = (Collection.uncached.filter(created__lte='2010-09-02 16:00:00')
+ .select_related('user'))
users = {}
for c in qs.filter(author__in=ids):
users.setdefault(c.author, []).append(c)