git repos / oastat_static_web_generator

commit 705ef431

Poul Sander · 2026-08-10 20:08
705ef4315793db45078cf8f9ca297967be617bae patch · browse files
parent 059668260b33e629409a18ce71c4d5186a82b8c0

Ensure that games reffered by the map page are generated

Changed files

M src/pages/map.cpp before
diff --git a/src/pages/map.cpp b/src/pages/map.cpp index eb6effd..771856b 100644 --- a/src/pages/map.cpp +++ b/src/pages/map.cpp
@@ -65,6 +65,8 @@ void write_html_map(cppdb::session& database, const std::string& mapname, const
sub_dict->SetValue("GAMENUMBER", std::to_string(game.gamenumber));
sub_dict->SetValue("TIME", getTimeStamp(game.time));
sub_dict->SetValue("SERVERNAME", game.servername);
+ // Ensure every game linked from this map page actually gets a game page generated
+ write_html_game(database, game, output_dir);
}
std::string output;