Skip to content

Commit 1c58cfd

Browse files
committed
games.py: Move data provided by to footer
1 parent 2571e36 commit 1c58cfd

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

modules/games.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -196,11 +196,8 @@ async def _games_search(self, interaction: discord.Interaction, query: str):
196196
url=f"{game['deku_link']}?{DEKU_UTM}&utm_content=mechabowser-game-search",
197197
timestamp=self.get_db_last_update(),
198198
)
199-
embed.set_footer(text=f'Data last fetched')
200-
201-
embed.set_author(
202-
name='Data provided by DekuDeals',
203-
url=f'https://www.dekudeals.com/games?{DEKU_UTM}&utm_content=mechabowser-game-search',
199+
embed.set_footer(
200+
text=f'Data provided by DekuDeals ⯁ Last fetched',
204201
icon_url='https://www.dekudeals.com/favicon-32x32.png',
205202
)
206203

@@ -241,9 +238,9 @@ async def _games_search(self, interaction: discord.Interaction, query: str):
241238

242239
lines = []
243240
for platform, price in prices.items():
244-
msrp = price['msrp']/100 if price['msrp'] else None
245-
curr = price['price']/100 if price['price'] else None
246-
241+
msrp = price['msrp'] / 100 if price['msrp'] else None
242+
curr = price['price'] / 100 if price['price'] else None
243+
247244
if curr and msrp and curr < msrp:
248245
lines.append(f"{platform}: ~~${msrp:.2f}~~ ${curr:.2f}")
249246
elif curr:

0 commit comments

Comments
 (0)