Skip to content

Commit

Permalink
Version 0.7.14
Browse files Browse the repository at this point in the history
Version 0.7.14
  • Loading branch information
l3keboy authored Oct 28, 2023
2 parents 51d7153 + 955e0d6 commit 4aba90c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ VictreeBot uses [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

================================================================

## [0.7.14] - 28-10-2023

### [Bugfixes]

- Fix for raids not working correctly when using an unknown location

## [0.7.13] - 11-05-2023

### [Bugfixes]
Expand Down
11 changes: 7 additions & 4 deletions victreebot/extentions/interactions/raids/RaidClass.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,13 @@ async def update_raid_from_reaction(self, reaction: str, add: bool, member: hika
elif reaction == "remote":
self.remote_present.append(member.id) if add else self.remote_present.remove(member.id)

latitude = ""
longitude = ""
results = await self.bot_aware.db.get_location_info(self.guild, self.location_type, self.location_name)
latitude = results[0].get("latitude")
longitude = results[0].get("longitude")
location_name = results[0].get("name")
if results is not None and results != []:
latitude = results[0].get("latitude")
longitude = results[0].get("longitude")
location_name = self.location_name

if (
reaction == "instinct"
Expand Down Expand Up @@ -182,7 +185,7 @@ async def update_raid_from_reaction(self, reaction: str, add: bool, member: hika
latitude=latitude,
longitude=longitude,
)
if latitude is not None
if latitude is not None and latitude != ""
else SUPPORTED_LANGUAGES.get(self.language).raid_embed_description_without_location_link.format(
raid_id=self.raid_id.strip("'"),
raid_type=self.raid_type.strip("'").capitalize(),
Expand Down

0 comments on commit 4aba90c

Please sign in to comment.