mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-07 22:52:06 +08:00
Car docs: hide footnotes for hidden columns (#25219)
* Hide footnotes for hidden column * fix, this should only affect website old-commit-hash: 0eacab70a079ce67b1fe5443a146a535e467674c
This commit is contained in:
@@ -58,7 +58,7 @@ def generate_cars_md(all_car_info: List[CarInfo], template_fn: str, only_tier_co
|
||||
for c in hide_cols:
|
||||
del car.row[c]
|
||||
|
||||
footnotes = [fn.value.text for fn in ALL_FOOTNOTES]
|
||||
footnotes = [fn.value.text for fn in ALL_FOOTNOTES if fn.value.column in cols]
|
||||
cars_md: str = template.render(all_car_info=all_car_info,
|
||||
footnotes=footnotes, Star=Star, Column=cols, star_descriptions=STAR_DESCRIPTIONS)
|
||||
return cars_md
|
||||
|
||||
Reference in New Issue
Block a user