Skip to content

Commit

Permalink
updated dummy list_backups to return list of backups ordered by id
Browse files Browse the repository at this point in the history
  • Loading branch information
lirazsiri committed Aug 8, 2012
1 parent adbdfc0 commit 2b2e0dc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dummyhub.py
Expand Up @@ -316,7 +316,9 @@ def get_backup_record(self, backup_id):
return self.user.backups[backup_id]

def list_backups(self):
return self.user.backups.values()
backups = self.user.backups.values()
return sorted(self.user.backups.values(),
lambda a,b: cmp(int(a.backup_id), int(b.backup_id)))

def updated_backup(self, address):
# In the real implementation this should add a task which queries S3
Expand Down

0 comments on commit 2b2e0dc

Please sign in to comment.