Revision 77991625
b/pithos/api/functions.py | ||
---|---|---|
393 | 393 |
# notModified (304) |
394 | 394 |
|
395 | 395 |
version = get_int_parameter(request, 'version') |
396 |
if not version: |
|
397 |
version = request.GET.get('version') |
|
396 | 398 |
try: |
397 | 399 |
meta = backend.get_object_meta(request.user, v_account, v_container, v_object, version) |
398 | 400 |
except NameError: |
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