diff --git a/Cargo.lock b/Cargo.lock index b3eece5..58f9b72 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -578,7 +578,7 @@ checksum = "0206175f82b8d6bf6652ff7d71a1e27fd2e4efde587fd368662814d6ec1d9ce0" [[package]] name = "fabula_votes_server" -version = "1.4.1" +version = "1.4.0" dependencies = [ "argon2", "blake2", diff --git a/Cargo.toml b/Cargo.toml index 298d596..ec70a8c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ name = "fabula_votes_server" license = "MPL-2.0" readme = "README.md" authors = ["trotFunky"] -version = "1.4.1" +version = "1.4.0" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/static_files/vote_chart.js b/static_files/vote_chart.js index 306a01d..f82b977 100644 --- a/static_files/vote_chart.js +++ b/static_files/vote_chart.js @@ -1,9 +1,7 @@ const limit_ratio = 1.3 const colors = ['#b6b8fc', '#b6f4fc', '#fcb6cc', '#e0fcb6', '#fcdcb6', '#b6fcc8', '#f0b6fc'] async function main() { - let current_url = new URL(document.URL) - current_url.hash = '' // Strip the local part of the URL, for example if we select a Truth - const vote_response = await fetch(current_url.toString()+"/votes"); + const vote_response = await fetch(document.URL+"/votes"); if (!vote_response.ok) { return; } diff --git a/templates/tags/filtered_truths.html.tera b/templates/tags/filtered_truths.html.tera index cb94d54..ad2ffb9 100644 --- a/templates/tags/filtered_truths.html.tera +++ b/templates/tags/filtered_truths.html.tera @@ -21,7 +21,7 @@ {% for truth in truths %}
{{ truth.rendered_text | safe }}
{{ truth.rendered_text | safe }}
diff --git a/templates/weeks/truth.html.tera b/templates/weeks/truth.html.tera index 5eaa580..5a420e6 100644 --- a/templates/weeks/truth.html.tera +++ b/templates/weeks/truth.html.tera @@ -5,7 +5,7 @@ {%- endif -%}