Some good progresspython main.py Started the edit verse functionality. The cards on dashboard now pull dynamically based on the users in the db. Will need to add 'start up' functions that allow you to input your children so everything is scalable. Need to look into auth too.

This commit is contained in:
Norm Rasmussen
2024-10-07 18:14:27 -04:00
parent a05d842a5a
commit 61094c1aac
13 changed files with 73 additions and 42 deletions

View File

@ -21,3 +21,12 @@ class Utils():
def toggle_completion(verse, person, status):
ins = cur.execute(f"update tasks set status = '{status}' where person = '{person.value}' and verse = '{verse}'")
db.commit()
def get_persons_incomplete(person):
inc = cur.execute(f"select person, verse, verse_passage, club from tasks where status = '0' and person = '{person}'")
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}'")
db.commit()