|
|
@ -104,20 +104,13 @@ This will return a new DataFrame with all the columns from both tables, and only
|
|
|
|
.then(data => {
|
|
|
|
.then(data => {
|
|
|
|
console.log('Success:', data);
|
|
|
|
console.log('Success:', data);
|
|
|
|
localStorage.setItem("docsIndex", JSON.stringify(data));
|
|
|
|
localStorage.setItem("docsIndex", JSON.stringify(data));
|
|
|
|
|
|
|
|
generateOptions()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// check if api_key is set
|
|
|
|
function generateOptions(){
|
|
|
|
if (localStorage.getItem('apiKey') === null) {
|
|
|
|
|
|
|
|
console.log("apiKey is not set")
|
|
|
|
|
|
|
|
document.getElementById('modal').classList.toggle('hidden')
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (localStorage.getItem('docsIndex') === null) {
|
|
|
|
|
|
|
|
console.log("docsIndex is not set")
|
|
|
|
|
|
|
|
docsIndex()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
docsIndex = localStorage.getItem('docsIndex')
|
|
|
|
docsIndex = localStorage.getItem('docsIndex')
|
|
|
|
// create option on select with id select-docs
|
|
|
|
// create option on select with id select-docs
|
|
|
|
var select = document.getElementById("select-docs");
|
|
|
|
var select = document.getElementById("select-docs");
|
|
|
@ -140,7 +133,18 @@ This will return a new DataFrame with all the columns from both tables, and only
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// check if api_key is set
|
|
|
|
|
|
|
|
if (localStorage.getItem('apiKey') === null) {
|
|
|
|
|
|
|
|
console.log("apiKey is not set")
|
|
|
|
|
|
|
|
document.getElementById('modal').classList.toggle('hidden')
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (localStorage.getItem('docsIndex') === null) {
|
|
|
|
|
|
|
|
console.log("docsIndex is not set")
|
|
|
|
|
|
|
|
docsIndex()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
generateOptions()
|
|
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
<script src="{{url_for('static',filename='src/authapi.js')}}"></script>
|
|
|
|
<script src="{{url_for('static',filename='src/authapi.js')}}"></script>
|
|
|
|