From 4328dd17bfcd4c33a77c4405d52c3660a6c62bf5 Mon Sep 17 00:00:00 2001 From: nil0j Date: Fri, 27 Sep 2024 17:27:02 +0200 Subject: update --- rust/scripts/populate/structures.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 rust/scripts/populate/structures.py (limited to 'rust/scripts/populate/structures.py') diff --git a/rust/scripts/populate/structures.py b/rust/scripts/populate/structures.py new file mode 100644 index 0000000..31feb1b --- /dev/null +++ b/rust/scripts/populate/structures.py @@ -0,0 +1,13 @@ +class song: + def __init__(self, name, lyrics): + self.name = name + self.lyrics = lyrics + + +class album: + def __init__(self, name, cover, songs, artist_id, release=None): + self.name = name + self.cover = cover + self.songs = songs + self.artist = artist_id + self.release = release -- cgit v1.2.3