Skip to content

Commit

Permalink
Removed client_version_info from PlayerService
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Miko committed Oct 2, 2020
1 parent 6c26c31 commit 5105dbd
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions server/player_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ def __init__(self, database: FAFDatabase):

# Static-ish data fields.
self.uniqueid_exempt = {}
self.client_version_info = ("0.0.0", None)
self._dirty_players = set()

async def initialize(self) -> None:
Expand Down Expand Up @@ -256,14 +255,6 @@ async def update_data(self):
rows = await result.fetchall()
self.uniqueid_exempt = frozenset(map(lambda x: x[0], rows))

# Client version number
result = await conn.execute(
"SELECT version, file FROM version_lobby ORDER BY id DESC LIMIT 1"
)
row = await result.fetchone()
if row is not None:
self.client_version_info = (row[0], row[1])

async def shutdown(self):
tasks = []
for player in self:
Expand Down

0 comments on commit 5105dbd

Please sign in to comment.