mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-12-05 06:09:57 -05:00
Changing Archive Sync to Update and Alternatives to History.
This commit is contained in:
parent
a17eb6559e
commit
11bd59cec0
7 changed files with 51 additions and 53 deletions
|
|
@ -23,8 +23,8 @@ logger = logger.getChild(__name__)
|
|||
async def get_archive(_: Request, archive_id: int):
|
||||
archive = lib.get_archive(archive_id=archive_id)
|
||||
archive_file = archive.singlefile_file.__json__()
|
||||
alternatives = [i.singlefile_file.__json__() for i in archive.alternatives]
|
||||
return json_response({'file': archive_file, 'alternatives': alternatives})
|
||||
history = [i.singlefile_file.__json__() for i in archive.history]
|
||||
return json_response({'file': archive_file, 'history': history})
|
||||
|
||||
|
||||
@bp.delete('/<archive_ids:int>')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue