This commit is contained in:
2024-05-17 12:34:45 +02:00
parent c1c9f98e87
commit 536fd65203
9 changed files with 200 additions and 127 deletions

View File

@@ -1,6 +1,7 @@
from typing import Optional, List
import gspread
from pydantic import BaseModel
from enum import Enum
class GoogleFile(BaseModel):
file_id: str
@@ -11,7 +12,14 @@ class Genre(BaseModel):
genre_name: str
class Song(BaseModel):
song_id: Optional[int]
song_title: str
url: str
genres: List[Genre]
id: int
og_artist: Optional[str]
aca_artist: Optional[str]
title: str
yt_url: Optional[str]
is_aca: bool
arng_url: Optional[str]
categories: dict[str, bool]
main_category: str
singable: bool
vote: Optional[int]