Browse Source

Add download record

pull/1310/head
Hironsan 3 years ago
parent
commit
5ad6fc7383
1 changed files with 19 additions and 0 deletions
  1. 19
      app/api/views/download/data.py

19
app/api/views/download/data.py

@ -0,0 +1,19 @@
from typing import Any, Dict, List
class Record:
def __init__(self,
id: int,
data: str,
label: List[Any],
user: str,
metadata: Dict[Any, Any]):
self._id = id
self._data = data
self._label = label
self._user = user
self._metadata = metadata
def __str__(self):
return f'{self._data}\t{self._label}'
Loading…
Cancel
Save