update DB

This commit is contained in:
Dr.Lt.Data committed 2024-12-25 15:43:27 +09:00
1 parent e39ab82142
commit 07aa30fccc
10 files changed
+3705 -3032

No files matched your search

+6 -1
View File
@@ -654,7 +654,12 @@ async def get_data(uri, silent=False):
if uri.startswith("http"):
async with aiohttp.ClientSession(trust_env=True, connector=aiohttp.TCPConnector(verify_ssl=False)) as session:
async with session.get(uri) as resp:
headers = {
'Cache-Control': 'no-cache',
'Pragma': 'no-cache',
'Expires': '0'
}
async with session.get(uri, headers=headers) as resp:
json_text = await resp.text()
else:
with cache_lock:
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.