updates for installable version
This commit is contained in:
@@ -184,4 +184,13 @@ proc delete*(model: RoutineModel, id: RoutineId) =
|
||||
model.db.exec("DELETE FROM Routine WHERE id = ?", id)
|
||||
|
||||
# Update RoutineModel.routines
|
||||
model.routines.del(id)
|
||||
model.routines.del(id)
|
||||
|
||||
#preload the selected seq with routines that have selByDef == true.
|
||||
proc selectedPreload*(): seq[RoutineId] =
|
||||
var selected: seq[RoutineId]
|
||||
let model = newRoutineModel(databasePath)
|
||||
for routine in model.routineSeq():
|
||||
if routine.selByDef == true:
|
||||
selected.add(routine.id)
|
||||
return selected
|
||||
Reference in New Issue
Block a user