Revision c9af0703 pithos/backends/simple.py
b/pithos/backends/simple.py | ||
---|---|---|
293 | 293 |
path = os.path.join(account, container, name) |
294 | 294 |
sql = '''select distinct version_id, strftime('%s', tstamp) from versions where name = ?''' |
295 | 295 |
c = self.con.execute(sql, (path,)) |
296 |
return [(str(x[0]), int(x[1])) for x in c.fetchall()]
|
|
296 |
return [(int(x[0]), int(x[1])) for x in c.fetchall()]
|
|
297 | 297 |
|
298 | 298 |
def get_block(self, hash): |
299 | 299 |
"""Return a block's data.""" |
Also available in: Unified diff