mirror of
https://gitlab.com/chicken-riders/RcGcDw.git
synced 2025-02-23 00:24:09 +00:00
Merge branch 'testing-patch-90de' into 'testing'
Don't break existing query arguments See merge request piotrex43/RcGcDw!118
This commit is contained in:
commit
8dd1469f6d
|
@ -163,7 +163,8 @@ def embed_upload_upload(ctx, change) -> DiscordMessage:
|
||||||
for num, revision in enumerate(urls):
|
for num, revision in enumerate(urls):
|
||||||
if revision["timestamp"] == change["logparams"][
|
if revision["timestamp"] == change["logparams"][
|
||||||
"img_timestamp"]: # find the correct revision corresponding for this log entry
|
"img_timestamp"]: # find the correct revision corresponding for this log entry
|
||||||
image_direct_url = "{rev}?{cache}".format(rev=revision["url"],
|
image_direct_url = "{rev}{c}rcgcdw={cache}".format(rev=revision["url"],
|
||||||
|
c="&" if "?" in revision["url"] else "?",
|
||||||
cache=int(time.time() * 5)) # cachebusting
|
cache=int(time.time() * 5)) # cachebusting
|
||||||
break
|
break
|
||||||
except KeyError:
|
except KeyError:
|
||||||
|
|
Loading…
Reference in a new issue