insane fix
This commit is contained in:
parent
273eca9da2
commit
d2730a58fe
@ -81,7 +81,6 @@ class User(UserMixin):
|
|||||||
weekday = datetime.today().weekday()
|
weekday = datetime.today().weekday()
|
||||||
heatmap = [100]
|
heatmap = [100]
|
||||||
|
|
||||||
# 0, 1, 2, 3, 4, 5, 6
|
|
||||||
# append the heatmap values of the current week
|
# append the heatmap values of the current week
|
||||||
for day in range(0, 6-weekday):
|
for day in range(0, 6-weekday):
|
||||||
heatmap.append(0)
|
heatmap.append(0)
|
||||||
|
|||||||
@ -117,7 +117,7 @@ document.addEventListener("DOMContentLoaded", function() {
|
|||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
const passwordInput = document.getElementById(passwordId);
|
const passwordInput = document.getElementById(passwordId);
|
||||||
const passwordFeedback = document.getElementById(passwordFeedbackId);
|
const passwordFeedback = document.getElementById(passwordFeedbackId);
|
||||||
const password = passwordInput.value.trim(); // Get the password entered by the user
|
const password = passwordInput.value; // Get the password entered by the user
|
||||||
if (!passwordInput.value.trim()) {
|
if (!passwordInput.value.trim()) {
|
||||||
passwordFeedback.textContent = errorMessage;
|
passwordFeedback.textContent = errorMessage;
|
||||||
passwordInput.classList.add("is-invalid");
|
passwordInput.classList.add("is-invalid");
|
||||||
@ -184,7 +184,6 @@ document.addEventListener("DOMContentLoaded", function() {
|
|||||||
return isValid;
|
return isValid;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Add event listener to edit button to open modal
|
// Add event listener to edit button to open modal
|
||||||
DeleteAccountButton.addEventListener("click", function() {
|
DeleteAccountButton.addEventListener("click", function() {
|
||||||
confirmDeleteModal.show();
|
confirmDeleteModal.show();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user