mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2026-01-06 20:04:51 +00:00
style: format code with black and isort (#260)
Format code with black and isort
This commit fixes the style issues introduced in de72f60 according to the output
from Black and isort.
Details: None
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
This commit is contained in:
parent
de72f6077a
commit
703498f0a5
1 changed files with 21 additions and 5 deletions
|
|
@ -336,9 +336,15 @@ async def getDataLendrive(msg, kueri, CurrentPage, user, strings):
|
||||||
if not SCRAP_DICT.get(msg.id):
|
if not SCRAP_DICT.get(msg.id):
|
||||||
try:
|
try:
|
||||||
if query:
|
if query:
|
||||||
data = await http.get(f"{web['lendrive']}/?s={query}", headers=headers, follow_redirects=True)
|
data = await http.get(
|
||||||
|
f"{web['lendrive']}/?s={query}",
|
||||||
|
headers=headers,
|
||||||
|
follow_redirects=True,
|
||||||
|
)
|
||||||
else:
|
else:
|
||||||
data = await http.get(web["lendrive"], headers=headers, follow_redirects=True)
|
data = await http.get(
|
||||||
|
web["lendrive"], headers=headers, follow_redirects=True
|
||||||
|
)
|
||||||
except Exception as err:
|
except Exception as err:
|
||||||
await msg.edit_msg(strings("err_getweb").format(err=err))
|
await msg.edit_msg(strings("err_getweb").format(err=err))
|
||||||
return None, None
|
return None, None
|
||||||
|
|
@ -347,9 +353,19 @@ async def getDataLendrive(msg, kueri, CurrentPage, user, strings):
|
||||||
for o in res.find_all(class_="bsx"):
|
for o in res.find_all(class_="bsx"):
|
||||||
title = o.find("a")["title"]
|
title = o.find("a")["title"]
|
||||||
link = o.find("a")["href"]
|
link = o.find("a")["href"]
|
||||||
status = o.find(class_="epx").text if o.find(class_="epx") else "Not Provided by BOT"
|
status = (
|
||||||
kualitas = o.find(class_="typez TV").text if o.find(class_="typez TV") else o.find(class_="typez BD")
|
o.find(class_="epx").text
|
||||||
lenddata.append({"judul": title, "link": link, "quality": kualitas, "status": status})
|
if o.find(class_="epx")
|
||||||
|
else "Not Provided by BOT"
|
||||||
|
)
|
||||||
|
kualitas = (
|
||||||
|
o.find(class_="typez TV").text
|
||||||
|
if o.find(class_="typez TV")
|
||||||
|
else o.find(class_="typez BD")
|
||||||
|
)
|
||||||
|
lenddata.append(
|
||||||
|
{"judul": title, "link": link, "quality": kualitas, "status": status}
|
||||||
|
)
|
||||||
if not lenddata:
|
if not lenddata:
|
||||||
await msg.edit_msg(strings("no_result"), del_in=5)
|
await msg.edit_msg(strings("no_result"), del_in=5)
|
||||||
return None, 0, None
|
return None, 0, None
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue