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:
14
utils.py
14
utils.py
@ -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()
|
||||
|
||||
Reference in New Issue
Block a user