Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Commit

Permalink
Now I'm all sort-happy (#413)
Browse files Browse the repository at this point in the history
  • Loading branch information
chadwhitacre committed Dec 8, 2012
1 parent b1ebc3d commit fa48819
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gittip/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,8 @@ def dump(self):
pkeys = self._get_primary_keys()
for table_name in self._get_table_names():
pkey = pkeys[table_name]
rows = self.db.fetchall("SELECT * FROM %s" % table_name)
rows = self.db.fetchall("SELECT * FROM %s ORDER BY %s"
% (table_name, pkey))
if rows is None:
rows = []
mapped = {}
Expand Down

0 comments on commit fa48819

Please sign in to comment.