mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-14 21:38:38 +00:00
Plan for next release
This commit is contained in:
@@ -825,7 +825,7 @@ async def wyszukaj(ctx, how_many=0, slowa_kluczowe=None):
|
||||
It is an optional parameter with a default value of 0, which means that if no value is provided for
|
||||
how_many, the function will return all search results, defaults to 0 (optional)
|
||||
"""
|
||||
# TODO: Potem dorobić wyszukiwania po kawałkach słów
|
||||
#TODO: Przerobić na webservice
|
||||
# i sieć neuronową z możliwością wyrażenia opinii o dopasowaniu.
|
||||
if slowa_kluczowe:
|
||||
word_list = slowa_kluczowe
|
||||
@@ -1300,7 +1300,8 @@ async def zagraj_mi_kawalek(ctx):
|
||||
async with ctx.typing():
|
||||
search_time_glob = datetime.now()
|
||||
logger.info("Zaczynam szukać timestamp %s", datetime.now())
|
||||
file = await wyszukaj(ctx=ctx)
|
||||
coro = asyncio.to_thread(wyszukaj,ctx=ctx)
|
||||
file = await coro
|
||||
logger.info(
|
||||
"Koniec szukania(timestamp %s zajęło %s",
|
||||
datetime.now(),
|
||||
|
||||
@@ -65,6 +65,9 @@ class Librarian(object):
|
||||
|
||||
|
||||
def check_if_exists(self,page_url):
|
||||
#TODO: Spowolnic
|
||||
#TODO: Sprawdzac po mirrorach
|
||||
#TODO: sprawdzac w tym jebanym pliku
|
||||
in_scihub_db = True
|
||||
if not page_url.startswith(("http:", "https:")):
|
||||
raise ValueError("URL must start with 'http:' or 'https:'")
|
||||
|
||||
@@ -130,4 +130,5 @@ if __name__ == "__main__":
|
||||
for worker in threads:
|
||||
worker.join()
|
||||
|
||||
#TODO: wrzucić wyszukanie i robienie playlist
|
||||
#TODO: Inne pliki - sadox, dokumenty naukowe itp.
|
||||
|
||||
Reference in New Issue
Block a user