Revision 77991625 pithos/backends/simple.py

b/pithos/backends/simple.py
353 353
        return int(row[0]), int(row[1]), int(tstamp)
354 354
    
355 355
    def _get_version(self, path, version=None):
356
        if version is None:            
356
        if version in [None, 'list']:
357 357
            sql = '''select version_id, strftime('%s', tstamp), size, hide from versions where name = ?
358 358
                        order by version_id desc limit 1'''
359 359
            c = self.con.execute(sql, (path,))

Also available in: Unified diff