mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-03 20:13:02 +00:00
aa79214a50
* Restyled by autopep8 * Restyled by black * Restyled by isort * Restyled by reorder-python-imports * Restyled by yapf Co-authored-by: Restyled.io <commits@restyled.io>
22 lines
456 B
Python
22 lines
456 B
Python
from dataclasses import dataclass
|
|
|
|
from app import models
|
|
|
|
|
|
@dataclass
|
|
class Playlist:
|
|
playlistid: str
|
|
name: str
|
|
image: str
|
|
lastUpdated: int
|
|
description: str
|
|
count: int = 0
|
|
|
|
def __init__(self, p: models.Playlist) -> None:
|
|
self.playlistid = p.playlistid
|
|
self.name = p.name
|
|
self.image = p.image
|
|
self.lastUpdated = p.lastUpdated
|
|
self.description = p.description
|
|
self.count = p.count
|