Enable post search to other supported post types (#481)

* Enable post search to other supported post types like question, video, and others

* Upgrade isort to match pre-commit config
pull/482/head
Humberto Rocha 2023-01-29 14:26:08 -05:00 zatwierdzone przez GitHub
rodzic e6f827dd7f
commit aeba38b8ae
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -94,7 +94,7 @@ class SearchService:
return identity return identity
# Is it a post? # Is it a post?
elif type == "note": elif type in [value.lower() for value in Post.Types.values]:
# Try and retrieve the post by URI # Try and retrieve the post by URI
# (we do not trust the JSON we just got - fetch from source!) # (we do not trust the JSON we just got - fetch from source!)
try: try:

Wyświetl plik

@ -1,7 +1,7 @@
-r requirements.txt -r requirements.txt
black==22.10.0 black==22.10.0
flake8==5.0.4 flake8==5.0.4
isort==5.10.1 isort==5.12.0
mock~=4.0.3 mock~=4.0.3
pre-commit~=2.20.0 pre-commit~=2.20.0
pytest-asyncio~=0.20.2 pytest-asyncio~=0.20.2