Skip to content

Commit

Permalink
fix: reading aliases from database when asking for their name
Browse files Browse the repository at this point in the history
FossilOrigin-Name: 738a7171f36d72b487cb49f721353fd6e025299d7cab7e8702884c269a5cb0a7
  • Loading branch information
thindil committed Jan 3, 2024
1 parent 039d1e7 commit 0882b2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/input.nim
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ proc askForName*[T](db; action, namesType: string; name: var T) {.sideEffect,
elif names is seq[Option]:
db.rawSelect(qry = "SELECT * FROM options WHERE readonly=0 ORDER BY option ASC",
objs = names)
elif names in seq[Alias]:
elif names is seq[Alias]:
db.rawSelect(qry = "SELECT * FROM aliases ORDER BY id ASC",
objs = names)
var
Expand Down

0 comments on commit 0882b2b

Please sign in to comment.