debug
This commit is contained in:
parent
43220b42f3
commit
37a755025d
2 changed files with 7 additions and 3 deletions
|
|
@ -50,6 +50,6 @@ def track():
|
||||||
|
|
||||||
return str(len(db[hash][cat]))
|
return str(len(db[hash][cat]))
|
||||||
else:
|
else:
|
||||||
return 'hash missing'
|
return str(0)
|
||||||
|
|
||||||
serve(app, host='0.0.0.0', port=8001)
|
serve(app, host='0.0.0.0', port=8001)
|
||||||
|
|
@ -30,8 +30,12 @@ fetch('https://nmns.place/track?' + new URLSearchParams({
|
||||||
ua: ua,
|
ua: ua,
|
||||||
cat: cat
|
cat: cat
|
||||||
})).then(response => response.text().then((progress) => {
|
})).then(response => response.text().then((progress) => {
|
||||||
total = document.querySelector('span#progress').innerHTML
|
if ( progress != '0') {
|
||||||
document.querySelector('span#progress').innerHTML = progress + ' of ' + total
|
total = document.querySelector('span#progress').innerHTML
|
||||||
|
document.querySelector('span#progress').innerHTML = progress + ' of ' + total
|
||||||
|
} else {
|
||||||
|
document.querySelector('span#progress').innerHTML = 'anonymous'
|
||||||
|
}
|
||||||
}))
|
}))
|
||||||
.catch(error => {
|
.catch(error => {
|
||||||
// handle the error
|
// handle the error
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue