Created board game type Enum
This commit is contained in:
parent
ba0bd44116
commit
655b1b5cf0
2 changed files with 10 additions and 1 deletions
|
|
@ -3,7 +3,7 @@ import xml.etree.ElementTree as ET
|
|||
from pydantic import HttpUrl
|
||||
import requests
|
||||
|
||||
from classes.boardgame import BoardGame, BoardGameExpansion
|
||||
from classes.boardgame import BoardGame, BoardGameExpansion, CollectionBoardGame, WishlistBoardGame, BoardgameType
|
||||
import auth_manager
|
||||
|
||||
authenticated_session: requests.Session = requests.Session()
|
||||
|
|
|
|||
|
|
@ -1,5 +1,14 @@
|
|||
from pydantic import BaseModel, HttpUrl
|
||||
from datetime import date
|
||||
from enum import Enum
|
||||
|
||||
class BoardgameType(Enum):
|
||||
BOARDGAME = 1
|
||||
BOARDGAMEEXPANSION = 2
|
||||
COLLECTIONBOARDGAME = 3
|
||||
COLLECTIONBOARDGAMEEXPANSION = 4
|
||||
WISHLISTBOARDGAME = 5
|
||||
|
||||
|
||||
class BoardGame(BaseModel):
|
||||
id: int
|
||||
|
|
|
|||
Loading…
Reference in a new issue