forked from Ponysearch/Ponysearch
added loging for debugging
This commit is contained in:
parent
89245a1895
commit
e5f106014b
1 changed files with 4 additions and 3 deletions
|
@ -3,7 +3,8 @@
|
||||||
"""
|
"""
|
||||||
Derpibooru (Images)
|
Derpibooru (Images)
|
||||||
"""
|
"""
|
||||||
|
import json
|
||||||
|
import logging
|
||||||
from urllib.parse import urlencode
|
from urllib.parse import urlencode
|
||||||
from json import loads
|
from json import loads
|
||||||
|
|
||||||
|
@ -12,7 +13,7 @@ about = {
|
||||||
"website": 'https://derpibooru.org/',
|
"website": 'https://derpibooru.org/',
|
||||||
"wikidata_id": 'Q28233552',
|
"wikidata_id": 'Q28233552',
|
||||||
"official_api_documentation": 'https://derpibooru.org/pages/api/',
|
"official_api_documentation": 'https://derpibooru.org/pages/api/',
|
||||||
"use_official_api": False,
|
"use_official_api": True,
|
||||||
"require_api_key": False,
|
"require_api_key": False,
|
||||||
"results": 'JSON',
|
"results": 'JSON',
|
||||||
}
|
}
|
||||||
|
@ -49,5 +50,5 @@ def response(resp):
|
||||||
'content': result.get('description') or '',
|
'content': result.get('description') or '',
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
logging.debug(results)
|
||||||
return results
|
return results
|
||||||
|
|
Loading…
Reference in a new issue