Permalink
Browse files

fixed datetime bug, index bug

  • Loading branch information...
thenoviceoof committed Mar 5, 2012
1 parent f39bba5 commit 8b88a69840e9feaac5114c0d586e9074830a30d9
Showing with 8 additions and 3 deletions.
  1. +1 −1 admin.py
  2. +2 −2 flyer.py
  3. +5 −0 index.yaml
View
@@ -75,7 +75,7 @@ def get(self):
self.response.out.write("Sent emails")
elif day == 6:
# it's sunday
- # check if the flyers are
+ # check if the flyers should be rolled over
flyer_query = Flyer.all()
flyer_query.filter("active =", True)
flyers = flyer_query.fetch(200)
View
@@ -568,7 +568,7 @@ def get(self, job_id):
flyer = job.flyer
email = job.email
# update the email
- email.updated_at = datetime.datetime.now()
+ email.updated_at = datetime.now()
email.put()
if flyer.flyer:
if job.state == INIT:
@@ -592,7 +592,7 @@ def get(self, job_id):
job.put()
# update the email
email = job.email
- email.updated_at = datetime.datetime.now()
+ email.updated_at = datetime.now()
email.put()
# count the number of jobs attached to this flyer
job_query = Job.all()
View
@@ -14,3 +14,8 @@ indexes:
properties:
- name: enable
- name: updated_at
+
+- kind: Job
+ properties:
+ - name: active
+ - name: state

0 comments on commit 8b88a69

Please sign in to comment.