all repos — artbound-python @ 5c052156e6b0e9d332c90a8fd9dafdb8c6b98ccf

A client-server reimplementation of the administration panel for ArtBound.

more polish
BiRabittoh birabittoh@tilde.team
Sat, 12 Aug 2023 15:46:21 +0200
commit

5c052156e6b0e9d332c90a8fd9dafdb8c6b98ccf

parent

bb331c5170916a5958ae4d3054d7bec96df5d84b

1 files changed, 2 insertions(+), 4 deletions(-)

jump to
M artbound_python/static/script.jsartbound_python/static/script.js

@@ -260,16 +260,14 @@ if (months.has(month_value)) return;

get_button.disabled = true; get_button.innerText = "🔄" postData("/", { month: month_value }).then((data) => { - - const new_data = data.map((element) => { + fanarts.push(...data.map((element) => { return { ...element, "enabled": 1, "rotated": 0, "watermark": { invert: "" }, }; - }); - fanarts.push(...new_data); + })); controls_div.hidden = false; updateOpacity(); updateFanartList();