author.to_db
All checks were successful
/ job (push) Successful in 1m10s

This commit is contained in:
Marc Beninca 2024-10-26 11:29:40 +02:00
parent 27329865ee
commit 125e2ac9ca
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -20,5 +20,12 @@ class Author(Object):
:type name: str
"""
self.uid = uid
self.name = name.replace(" ", " ")
self.name = name
self.playlist: Playlist
def to_db(self) -> str:
"""Return non-breakable name.
:rtype: str
"""
return self.name.replace(" ", " ")