From c7cefd421cdf94c964c429a5c59824f8987af6c9 Mon Sep 17 00:00:00 2001 From: Gehad elrobey Date: Wed, 16 Jul 2014 14:38:20 +0200 Subject: 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 Signed-off-by: Miika Turkia Signed-off-by: Dirk Hohndel --- save-html.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/save-html.c b/save-html.c index 324d543fb..f6b9a50e0 100644 --- a/save-html.c +++ b/save-html.c @@ -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, "divemaster", dive->divemaster); 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_notes(b, dive, "\"notes\":\"", "\","); if (!list_only) { put_cylinder_HTML(b, dive); put_HTML_samples(b, dive); put_HTML_bookmarks(b, dive); + write_dive_status(b, dive); + save_photos(b, photos_dir, dive); } put_string(b, "},\n"); (*dive_no)++; -- cgit v1.2.3-70-g09d2