Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Tweak migration

  • Loading branch information...
commit 7cd4c03e112fdfe05224b6be6de3d105f6e852aa 1 parent 99ab410
Per Thulin authored
Showing with 2 additions and 1 deletion.
  1. +1 −0  app.yaml
  2. +1 −1  migrations.py
View
1  app.yaml
@@ -19,6 +19,7 @@ handlers:
- url: /migrate
script: migrations.py
+ login: admin
- url: /
script: main.py
View
2  migrations.py
@@ -38,7 +38,7 @@ def get(self):
#### START MIGRATION CODE ####
- for m in Entry.all().fetch(page_size, page_size * page):
+ for m in Entry.all().order('-timestamp').fetch(page_size, page_size * page):
count += 1
if ref != None and m.latlon == ref.latlon and ref.q.startswith(m.q):
#logging.info('deleting "%s" (ref = "%s")' % (m.q, ref.q))
Please sign in to comment.
Something went wrong with that request. Please try again.