Skip to content

Commit

Permalink
import: fix published schedule.raw path
Browse files Browse the repository at this point in the history
  • Loading branch information
felixguendling committed Sep 9, 2021
1 parent 7f23c50 commit f30287f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .pkg
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
[utl]
[email protected]:motis-project/utl.git
branch=master
commit=e8e4ec12d3ff7be68284ee2609d297095ed834f0
commit=c7be2bfe0b81702078b3aaf9c620c658d8d1f658
[guess]
[email protected]:motis-project/guess.git
branch=master
Expand Down
5 changes: 2 additions & 3 deletions base/bootstrap/src/import_schedule.cc
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#include "motis/bootstrap/import_settings.h"
#include "motis/loader/loader.h"

namespace fs = boost::filesystem;
namespace mm = motis::module;

namespace motis::bootstrap {
Expand Down Expand Up @@ -62,9 +61,9 @@ void register_import_schedule(motis_instance& instance,
fbb,
fbb.CreateVector(utl::to_vec(
dataset_opt_cpy.dataset_,
[&](auto const& p) {
[&, i = 0](auto const&) mutable {
return fbb.CreateString(
(fs::path{p} / "schedule.raw").generic_string());
dataset_opt_cpy.fbs_schedule_path(data_dir, i++));
})),
fbb.CreateVector(utl::to_vec(dataset_opt_cpy.dataset_prefix_,
[&](auto const& prefix) {
Expand Down

0 comments on commit f30287f

Please sign in to comment.