Started functionality around editing a verse. Added the ability to add a new child as well as a force popup if you load the page and there are no people in the db. Need to add another field for when you add a person to add their club too.

This commit is contained in:
Norm Rasmussen
2024-10-08 17:35:04 -04:00
parent 61094c1aac
commit 1ec9c3ca12
9 changed files with 184 additions and 71 deletions

View File

@ -27,6 +27,16 @@ class Utils():
incret = inc.fetchall()
return incret
def edit_verse(person, verse):
vedit = cur.execute(f"update tasks set verse_passage = '{verse_text}' where person = '{person.value} and verse = '{verse}'")
def edit_verse(person, verse, passage):
print(f"update tasks set verse_passage = '{passage.value}' where person = '{person.value}' and verse = '{verse}'")
vedit = cur.execute(f"update tasks set verse_passage = '{passage.value}' where person = '{person.value} and verse = '{verse}';")
db.commit()
def add_person(person):
print(person)
aperson = cur.execute(f"insert into tasks(person) values ('{person.value}')")
db.commit()
def delete_verse(verse, person):
dverse = cur.execute(f"delete from tasks where person = '{person.value}' and verse = '{verse}'")
db.commit()