Skip to content

Commit

Permalink
Merge pull request #17 from jhiemstrawisc/fix-get-lot-from-dir
Browse files Browse the repository at this point in the history
Fix get_lots_from_dir in rootly path case
  • Loading branch information
jhiemstrawisc authored Feb 27, 2024
2 parents 65455d8 + 91cb946 commit 2dd3738
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lotman_internal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1820,7 +1820,9 @@ std::pair<std::vector<std::string>, std::string> lotman::Lot::list_all_lots() {

std::pair<std::vector<std::string>, std::string> lotman::Lot::get_lots_from_dir(std::string dir, const bool recursive) {
if (dir.back() == '/') { // Remove the character
dir.pop_back();
if (dir.length() > 1) {
dir.pop_back();
}
}

std::string lots_from_dir_query = "SELECT lot_name FROM paths "
Expand Down

0 comments on commit 2dd3738

Please sign in to comment.