From 895fb2cda82fdab8ff2913806cc23d6c8a351084 Mon Sep 17 00:00:00 2001 From: petercoiley <54483443+petercoiley@users.noreply.github.com> Date: Sat, 10 Aug 2024 19:41:33 +0000 Subject: [PATCH 1/3] in database.py, created class MusicLibrary in settings.json, added "levelname" to cSpell.words --- .vscode/settings.json | 1 + chorus_thing/database.py | 27 +++++++++++++++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/.vscode/settings.json b/.vscode/settings.json index ccbdb7a..447a3f0 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -15,6 +15,7 @@ "errorlens", "esbenp", "ignorelist", + "levelname", "matangover", "mypy", "oderwat", diff --git a/chorus_thing/database.py b/chorus_thing/database.py index b7fb57d..d03f598 100644 --- a/chorus_thing/database.py +++ b/chorus_thing/database.py @@ -36,3 +36,30 @@ def __repr__(self) -> str: """String representation of table.""" return f"""Event(event_time={self.event_time}, location={self.location}, paid_event={self.paid_event}, choral_arrangement={self.choral_arrangement}, necessary_size={self.necessary_size})""" + + +class MusicLibrary(BaseTable): + """A class for scores.""" + + __tablename__ = "music_library" + + title: Mapped[str] + composer: Mapped[str] + lyricist: Mapped[str | None] + instrumentation: Mapped[str] + language: Mapped[str] + publisher: Mapped[str | None] + publication_number: Mapped[str | None] + score_link: Mapped[str | None] + lyric_link: Mapped[str | None] + track01_link: Mapped[str | None] + track02_link: Mapped[str | None] + track03_link: Mapped[str | None] + track04_link: Mapped[str | None] + track05_link: Mapped[str | None] + track06_link: Mapped[str | None] + track07_link: Mapped[str | None] + track08_link: Mapped[str | None] + track09_link: Mapped[str | None] + num_copies: Mapped[str] + license_info: Mapped[str | None] From 742ce97e98318174ad2c2243d2cadef1e0640872 Mon Sep 17 00:00:00 2001 From: Megan Coiley Date: Sat, 10 Aug 2024 20:53:05 +0000 Subject: [PATCH 2/3] Adding word to cSpell --- .vscode/settings.json | 1 + 1 file changed, 1 insertion(+) diff --git a/.vscode/settings.json b/.vscode/settings.json index 447a3f0..1590816 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -24,6 +24,7 @@ "pylance", "pylint", "pytest", + "SATB", "sqlalchemy", "tamasfe", "usernamehw", From 7462139f50bc2b1bb52017c699ee4f58a0d4e3b3 Mon Sep 17 00:00:00 2001 From: mousikos112 Date: Sat, 10 Aug 2024 17:00:14 -0400 Subject: [PATCH 3/3] Update chorus_thing/database.py Co-authored-by: Richie Cahill --- chorus_thing/database.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chorus_thing/database.py b/chorus_thing/database.py index d03f598..eba7655 100644 --- a/chorus_thing/database.py +++ b/chorus_thing/database.py @@ -61,5 +61,5 @@ class MusicLibrary(BaseTable): track07_link: Mapped[str | None] track08_link: Mapped[str | None] track09_link: Mapped[str | None] - num_copies: Mapped[str] + number_copies: Mapped[str] license_info: Mapped[str | None]