mirror of
https://github.com/KeksPirates/SoftwareManager.git
synced 2026-08-03 17:39:42 +02:00
16 lines
379 B
Python
16 lines
379 B
Python
from core.utils.data.models import Download, DownloadList
|
|
import json
|
|
|
|
|
|
|
|
|
|
def add_download_log(title, url, magnet_uri, completed) -> DownloadList:
|
|
downloads: list[Download] = []
|
|
downloads.append(Download(
|
|
title=title,
|
|
url=url,
|
|
magnet_uri=magnet_uri,
|
|
completed=completed
|
|
))
|
|
|
|
return DownloadList(data=downloads, count=len(downloads)) |