parseInt to make comparisons work...

This commit is contained in:
Frank de Lange 2022-03-02 01:53:24 +00:00
parent 4d12b745be
commit 2ff18a0646
6 changed files with 3 additions and 3 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
dist/spodcast-0.4.3.tar.gz vendored Normal file

Binary file not shown.

View file

@ -1,6 +1,6 @@
[metadata]
name = spodcast
version = 0.4.2
version = 0.4.3
description = A caching Spotify podcast to RSS proxy.
long_description = file:README.md
long_description_content_type = text/markdown

View file

@ -827,8 +827,8 @@ $UPDATE_RATE=$settings['update_rate'];
id = basename(url);
max=document.getElementById('max-' + id);
keep=document.getElementById('keep-' + id);
maxval = max.value;
keepval = keep.value;
maxval = parseInt(max.value);
keepval = parseInt(keep.value);
if(maxval > keepval) {
keeper = (maxval > 2) ? 5 : 2;
if (confirm("Sync count " + maxval + " is higher than Keep count " + keepval + "\n\n" +