document + rename stuff

This commit is contained in:
cwilvx
2024-07-07 16:07:27 +03:00
parent 32a2684ea2
commit 2ba5d6c1d7
11 changed files with 72 additions and 72 deletions
+4 -1
View File
@@ -23,6 +23,9 @@ from typing import Any, Iterable, Optional
def create_all():
"""
Create all the tables defined in this file.
NOTE: We need this function because the MasterBase does not collect
the tables defined here (as they are grand-children of the MasterBase)
"""
Base.metadata.create_all(DbEngine.engine)
@@ -317,7 +320,7 @@ class AlbumTable(Base):
# NOTE: The artist dict keys need to in the same order they appear in the db for this to work!
select(AlbumTable).where(AlbumTable.artisthashes.contains(artist))
)
albums[artist] = (albums_to_dataclasses(result.fetchall()))
albums[artist] = albums_to_dataclasses(result.fetchall())
return albums