mirror of
https://github.com/Redume/Shirino.git
synced 2025-07-03 18:50:55 +01:00
fix: Fixed image loading by adding time to query params
This commit is contained in:
parent
f98943674f
commit
f67d3fb2a3
1 changed files with 6 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
||||||
from http import HTTPStatus
|
from http import HTTPStatus
|
||||||
from urllib.parse import urlencode
|
from urllib.parse import urlencode
|
||||||
|
import time
|
||||||
|
|
||||||
import yaml
|
import yaml
|
||||||
import aiohttp
|
import aiohttp
|
||||||
|
@ -15,8 +16,12 @@ async def create_chart(
|
||||||
'from_currency': from_currency,
|
'from_currency': from_currency,
|
||||||
'conv_currency': conv_currency,
|
'conv_currency': conv_currency,
|
||||||
'period': period,
|
'period': period,
|
||||||
'backend': backend
|
'backend': backend,
|
||||||
|
'time_unique': time.time()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Without time_unqiue Telegram does not want to load the image
|
||||||
|
# Probably because of some kind of caching, but it's disabled.
|
||||||
|
|
||||||
base_url = f'{config["kekkai_instance"]}/api/getChart/'
|
base_url = f'{config["kekkai_instance"]}/api/getChart/'
|
||||||
query_string = urlencode(params)
|
query_string = urlencode(params)
|
||||||
|
|
Loading…
Add table
Reference in a new issue