pvp#

Battleground scoreboards the addon records, and the members-only match history and PvP boards built from them.

The battlegrounds block is additive on top of the SQX1: export v: 2: older sites ignore it, so the version number doesn’t change. The game hides the scoreboard while a match runs (C_PvP.GetScoreInfo is secret in an active match), so the addon records it once the match has ended.

sidequest_common.schemas.pvp.MAX_BATTLEGROUNDS = 50#

Matches in one export.

sidequest_common.schemas.pvp.MAX_BATTLEGROUND_PLAYERS = 80#

Scoreboard rows in one match (40 a side is the largest battleground).

sidequest_common.schemas.pvp.SAME_MATCH_SECONDS = 120#

Two recordings of the same battleground ending this close together are one match (several members record it).

sidequest_common.schemas.pvp.PVP_MATCHES_PAGE_SIZE = 25#
sidequest_common.schemas.pvp.PVP_BOARD_SIZE = 10#
class sidequest_common.schemas.pvp.BattlegroundWinner[source]#

Bases: enum.StrEnum

Which side won a battleground.

ALLIANCE = 'alliance'#
HORDE = 'horde'#
DRAW = 'draw'#
class sidequest_common.schemas.pvp.BattlegroundFaction[source]#

Bases: enum.StrEnum

A scoreboard row’s side.

ALLIANCE = 'alliance'#
HORDE = 'horde'#
class sidequest_common.schemas.pvp.ExportBattlegroundPlayer[source]#

Bases: pydantic.BaseModel

One scoreboard row, as C_PvP.GetScoreInfo gives it once the match has ended.

name is the player’s name as the scoreboard shows it. wow_class is the class file name (WARRIOR), lowercased by the site. Counters the scoreboard doesn’t show for this battleground are 0.

model_config#
name: str#
faction: BattlegroundFaction#
race: str | None#
wow_class: str | None#
killing_blows: int#
honorable_kills: int#
deaths: int#
honor_gained: int#
damage_done: int#
healing_done: int#
class sidequest_common.schemas.pvp.ExportBattleground[source]#

Bases: pydantic.BaseModel

One finished battleground in the export payload.

id is the addon’s own id for the recording (recorder plus end time); the site also merges recordings of the same match by other members (same instance_id, ended_at within SAME_MATCH_SECONDS). my_faction is the recorder’s side. winner is None if the game didn’t say.

id: str#
map: str#
instance_id: int#
ended_at: int#
duration: int#
winner: BattlegroundWinner | None = None#
my_faction: BattlegroundFaction#
players: list[ExportBattlegroundPlayer]#
class sidequest_common.schemas.pvp.BattlegroundImportCounts[source]#

Bases: pydantic.BaseModel

Counts for the battlegrounds section of one import. merged matches another member already recorded.

new: int = 0#
merged: int = 0#
class sidequest_common.schemas.pvp.PvpPlayerRow[source]#

Bases: pydantic.BaseModel

One scoreboard row on the site. character_slug links a guild character’s row to its character page.

model_config#
name: str#
faction: BattlegroundFaction#
race: str | None#
wow_class: WowClass | None#
killing_blows: int#
honorable_kills: int#
deaths: int#
honor_gained: int#
damage_done: int#
healing_done: int#
guild_member: bool#

True when the row is a SideQuest character.

character_slug: str | None#
class sidequest_common.schemas.pvp.PvpMatchSummary[source]#

Bases: pydantic.BaseModel

One battleground in the match history.

id: uuid.UUID#
map: str#
ended_at: datetime.datetime#
duration: int#
winner: BattlegroundWinner | None#
guild_faction: BattlegroundFaction#

The side the recording member played on.

won: bool | None#

Whether the guild’s side won; None if the winner is unknown or a draw.

guild_players: list[str]#

The SideQuest characters in the match.

recorded_by: str#
class sidequest_common.schemas.pvp.PvpMatchDetail[source]#

Bases: PvpMatchSummary

One battleground with its full scoreboard, highest honorable kills first.

players: list[PvpPlayerRow]#
class sidequest_common.schemas.pvp.PvpMatchPage[source]#

Bases: pydantic.BaseModel

One page of the match history, newest first.

page: int#
page_count: int#
matches: list[PvpMatchSummary]#
class sidequest_common.schemas.pvp.PvpBoardEntry[source]#

Bases: pydantic.BaseModel

One guild character on a PvP board.

model_config#
name: str#
wow_class: WowClass | None#
character_slug: str | None#
value: int#
class sidequest_common.schemas.pvp.PvpBoards[source]#

Bases: pydantic.BaseModel

Totals over every recorded battleground for SideQuest characters, ten to a board.

matches: int#

Battlegrounds recorded in total.

wins: list[PvpBoardEntry]#
honorable_kills: list[PvpBoardEntry]#
killing_blows: list[PvpBoardEntry]#
honor_gained: list[PvpBoardEntry]#
damage_done: list[PvpBoardEntry]#
healing_done: list[PvpBoardEntry]#