Skip to content

Commit

Permalink
Remove obsolete TODO notes
Browse files Browse the repository at this point in the history
  • Loading branch information
Grennith committed Jan 21, 2024
1 parent 5561c37 commit 482f255
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 0 additions & 4 deletions mapadroid/db/DbPogoProtoSubmitRaw.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ async def mons(self, session: AsyncSession, timestamp: float,
mon.form = 0
else:
mon.pokemon_id = mon_id
# TODO: Is "real" the correct reference here?
mon.gender = mon_display.gender.real
mon.costume = mon_display.costume.real
mon.form = mon_display.form.real
Expand Down Expand Up @@ -259,7 +258,6 @@ async def mon_iv(self, session: AsyncSession, timestamp: float,
if wild_pokemon is None or wild_pokemon.encounter_id == 0 or not wild_pokemon.spawn_point_id:
logger.warning("Encounter proto of no use (status: {}).", encounter_proto.status.real)
return None
# TODO: Does it work without ".real"?
encounter_id: int = wild_pokemon.encounter_id
pokemon_data: pogoprotos.PokemonProto = wild_pokemon.pokemon
mon_id: int = pokemon_data.id
Expand Down Expand Up @@ -692,7 +690,6 @@ async def quest(self, session: AsyncSession, quest_proto: pogoprotos.FortSearchO
reward_type: int = reward.type.real
item_item: int = item.item.real
item_amount: int = item.amount
# TODO: Check if .real can be used (i.e., if the ValueType can be None and would throw exception
pokemon_id: Optional[int] = encounter.pokemon_id
stardust: Optional[int] = reward.stardust

Expand Down Expand Up @@ -775,7 +772,6 @@ async def gyms(self, session: AsyncSession, map_proto: pogoprotos.GetMapObjectsO
cache_key = "gym{}{}{}".format(gymid, last_modified_ts, gameplay_weather)
if await self._cache.exists(cache_key):
continue
# TODO: Check if this works or .real needed
guard_pokemon_id: int = gym.guard_pokemon_id
team_id: int = gym.team

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ async def run(self):
logger.debug("MITM data processor {} finished queue item in {}ms", self.__name, end_time)
except KeyboardInterrupt:
logger.info("Received keyboard interrupt, stopping MITM data processor")
return

async def _process_data_raw(self, received_timestamp: int, data: Dict, origin: str):
method_id: Optional[int] = data.get("type", None)
Expand Down

0 comments on commit 482f255

Please sign in to comment.