mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
HTML: don't add photos or dive status if exporting list only
If export list only option is chosen, photos and dive status must not be added to the export. Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com> Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
cccf05ee7b
commit
c7cefd421c
1 changed files with 2 additions and 2 deletions
|
@ -191,14 +191,14 @@ void write_one_dive(struct membuffer *b, struct dive *dive, const char *photos_d
|
||||||
write_attribute(b, "buddy", dive->buddy);
|
write_attribute(b, "buddy", dive->buddy);
|
||||||
write_attribute(b, "divemaster", dive->divemaster);
|
write_attribute(b, "divemaster", dive->divemaster);
|
||||||
write_attribute(b, "suit", dive->suit);
|
write_attribute(b, "suit", dive->suit);
|
||||||
write_dive_status(b, dive);
|
|
||||||
save_photos(b, photos_dir, dive);
|
|
||||||
put_HTML_tags(b, dive, "\"tags\":", ",");
|
put_HTML_tags(b, dive, "\"tags\":", ",");
|
||||||
put_HTML_notes(b, dive, "\"notes\":\"", "\",");
|
put_HTML_notes(b, dive, "\"notes\":\"", "\",");
|
||||||
if (!list_only) {
|
if (!list_only) {
|
||||||
put_cylinder_HTML(b, dive);
|
put_cylinder_HTML(b, dive);
|
||||||
put_HTML_samples(b, dive);
|
put_HTML_samples(b, dive);
|
||||||
put_HTML_bookmarks(b, dive);
|
put_HTML_bookmarks(b, dive);
|
||||||
|
write_dive_status(b, dive);
|
||||||
|
save_photos(b, photos_dir, dive);
|
||||||
}
|
}
|
||||||
put_string(b, "},\n");
|
put_string(b, "},\n");
|
||||||
(*dive_no)++;
|
(*dive_no)++;
|
||||||
|
|
Loading…
Reference in a new issue