mirror of
https://github.com/Fluffy-Bean/Lynxie.git
synced 2025-05-14 08:02:17 +00:00
style: format code with black
Format code with black
This commit fixes the style issues introduced in cea527a
according to the output
from Black.
Details: None
This commit is contained in:
parent
cea527ae79
commit
ced110c2f9
2 changed files with 16 additions and 8 deletions
|
@ -11,8 +11,8 @@ class E621(commands.Cog):
|
|||
@commands.command()
|
||||
async def e621(self, ctx):
|
||||
embed = discord.Embed(
|
||||
title='Search Results',
|
||||
description='Here\'s a list of jobs I found on Indeed, just for you!',
|
||||
title="Search Results",
|
||||
description="Here's a list of jobs I found on Indeed, just for you!",
|
||||
colour=discord.Colour.orange(),
|
||||
)
|
||||
|
||||
|
@ -22,13 +22,21 @@ class E621(commands.Cog):
|
|||
browser.close()
|
||||
|
||||
for job in soup.find_all("div", {"class": "job_seen_beacon"}):
|
||||
job_title = job.find("h2", {"class": "jobTitle"}).find("span").text.strip() or "Job Title"
|
||||
company_name = job.find("span", {"class": "companyName"}).text.strip() or "Company Name"
|
||||
company_location = job.find("div", {"class": "companyLocation"}).text.strip() or "Location"
|
||||
job_title = (
|
||||
job.find("h2", {"class": "jobTitle"}).find("span").text.strip()
|
||||
or "Job Title"
|
||||
)
|
||||
company_name = (
|
||||
job.find("span", {"class": "companyName"}).text.strip()
|
||||
or "Company Name"
|
||||
)
|
||||
company_location = (
|
||||
job.find("div", {"class": "companyLocation"}).text.strip() or "Location"
|
||||
)
|
||||
|
||||
embed.add_field(
|
||||
name=job_title,
|
||||
value=f'{company_name} - {company_location}',
|
||||
value=f"{company_name} - {company_location}",
|
||||
inline=False,
|
||||
)
|
||||
|
||||
|
|
|
@ -18,8 +18,8 @@ class Help(commands.Cog):
|
|||
@commands.command()
|
||||
async def help(self, ctx):
|
||||
embed = discord.Embed(
|
||||
title='Help',
|
||||
description='Lynxie\'s prefix is `AAAA `',
|
||||
title="Help",
|
||||
description="Lynxie's prefix is `AAAA `",
|
||||
colour=discord.Colour.orange(),
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue