Afegir partitures de llistes (cançoners)
This commit is contained in:
@@ -89,3 +89,15 @@ class LilypondSet:
|
||||
self.title.encode(),
|
||||
*(tune.hash() for tune in self.tunes),
|
||||
)
|
||||
|
||||
|
||||
@dataclasses.dataclass
|
||||
class LilypondPlaylist:
|
||||
title: str
|
||||
sets: list[LilypondSet]
|
||||
|
||||
def hash(self) -> bytes:
|
||||
return get_hash(
|
||||
self.title.encode(),
|
||||
*(lilypond_set.hash() for lilypond_set in self.sets),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user