added loging for debugging

This commit is contained in:
pau sch 2022-07-15 08:08:47 +02:00
parent 89245a1895
commit e5f106014b

View file

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