Skip to content

Commit ec3cdc1

Browse files
committed
make server.py runnable
1 parent 70c86d7 commit ec3cdc1

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

server.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,17 @@
55
from contextlib import asynccontextmanager
66
from typing import List, Optional, Set
77

8+
import uvicorn
89
from fastapi import Depends, FastAPI, Path, Query, Response
910
from starlette import status
1011
from typing_extensions import Annotated
1112

1213
import tibiapy
1314
from tibiapy.enums import (AuctionBattlEyeFilter, AuctionOrderBy, AuctionOrderDirection, AuctionSearchType,
14-
AuctionSkillFilter, AuctionVocationFilter, HighscoresBattlEyeType, HighscoresCategory,
15-
HighscoresProfession, HouseOrder, HouseStatus, HouseType, NewsCategory, NewsType, PvpTypeFilter,
16-
SpellGroup, SpellSorting, SpellType, SpellVocationFilter)
15+
AuctionSkillFilter, AuctionVocationFilter, HighscoresBattlEyeType, HighscoresCategory,
16+
HighscoresProfession, HouseOrder, HouseStatus, HouseType, NewsCategory, NewsType,
17+
PvpTypeFilter,
18+
SpellGroup, SpellSorting, SpellType, SpellVocationFilter)
1719
from tibiapy.models import (Auction, AuctionFilters, BoostableBosses, BossEntry, Character, CharacterBazaar, Creature,
1820
CreatureEntry, CreaturesSection, EventSchedule, ForumBoard, ForumSection, ForumThread,
1921
Guild, GuildWars,
@@ -417,4 +419,9 @@ async def get_auction(
417419
fetch_mounts=fetch_mounts, fetch_outfits=fetch_outfits,
418420
fetch_familiars=fetch_familiars)
419421

422+
420423
# endregion
424+
425+
426+
if __name__ == "__main__":
427+
uvicorn.run(app=app)

0 commit comments

Comments
 (0)