diary

Text-based journaling program
git clone https://git.in0rdr.ch/diary.git
Log | Files | Refs | README | LICENSE

commit 3d9b9460d1737b3b4cb4905b12348df5013e634e
parent 3ecb9a3986898cca26e575460f815108e6e5af0b
Author: Andreas Gruhler <agruhl@gmx.ch>
Date:   Sat, 25 Dec 2021 12:55:18 +0100

add no char to skip imports

Diffstat:
Msrc/import.c | 8++------
1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/src/import.c b/src/import.c @@ -46,8 +46,6 @@ void ics_import(const char* ics_input, WINDOW* header, WINDOW* cal, WINDOW* asid i += search_pos; - // fprintf(stderr, "VEVENT DESCRIPTION: \n\n%s\n\n", vevent_desc); - // parse date strptime(vevent_date, "%Y%m%d", &date); strftime(dstr, sizeof dstr, CONFIG.fmt, &date); @@ -56,7 +54,6 @@ void ics_import(const char* ics_input, WINDOW* header, WINDOW* cal, WINDOW* asid char path[100]; char* ppath = path; fpath(CONFIG.dir, strlen(CONFIG.dir), &date, &ppath, sizeof path); - fprintf(stderr, "Import date file path: %s\n", path); if (conf_ch == 'c') { free(vevent); @@ -112,11 +109,10 @@ void ics_import(const char* ics_input, WINDOW* header, WINDOW* cal, WINDOW* asid } } pthread_cancel(progress_tid); + } else if (conf_ch == 'n') { + continue; } - // fprintf(stderr, "Import DTSTART: %s\n", desc); - // fprintf(stderr, "Import DESCRIPTION: %s\n", desc); - fprintf(stderr, "* * * * * * * * * * * * * \n"); free(vevent); free(vevent_date); free(vevent_desc);