Merge pull request #3 from Fluffy-Bean/deepsource-transform-a3616f49

format code with black
This commit is contained in:
Michał Gdula 2023-09-07 18:22:36 +01:00 committed by GitHub
commit d7953e9808
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 8 deletions

View file

@ -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,
)

View file

@ -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(),
)