Skip to content

Commit

Permalink
in database.py, created class MusicLibrary
Browse files Browse the repository at this point in the history
in settings.json, added "levelname" to cSpell.words
  • Loading branch information
ForzaMilan3 authored and mousikos112 committed Aug 10, 2024
1 parent 9f86b8a commit 895fb2c
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"errorlens",
"esbenp",
"ignorelist",
"levelname",
"matangover",
"mypy",
"oderwat",
Expand Down
27 changes: 27 additions & 0 deletions chorus_thing/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]

0 comments on commit 895fb2c

Please sign in to comment.