agendafs
A filesystem for your calendar.
git clone git://mccd.space/agendafscommit 58488c71d5cd19b609e87dd14915187a73b1d883
parent 7b734470f8ec0f60c6886fc2f966061df83d2906
Author: Marc Coquand <marc@coquand.email>
Date: Mon, 2 Jun 2025 19:03:10 +0100
Cleanup
Diffstat:
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/main.c b/main.c
@@ -448,7 +448,6 @@ load_journal_entries()
continue;
}
- // Parse the ICS file and check for errors
if (parse_ics_to_journal_entry(filepath, new_entry) !=
0) {
LOG("Failed to parse entry: %s", entry->d_name);
@@ -461,7 +460,8 @@ load_journal_entries()
LOG("Parsed %s", new_entry->filename_original);
- // Generate a unique filename for the journal entry
+ // Make sure filename, which happens when
+ // Two entries are created on the same minute
char *unique_filename = get_unique_filename(
new_entry->created_at, entries_fuse_key);
if (!unique_filename) {
@@ -476,7 +476,6 @@ load_journal_entries()
new_entry->filename = unique_filename;
- // Insert into hashmaps and handle errors
if (hashmap_insert(entries_fuse_key, unique_filename,
new_entry) != 0 ||
hashmap_insert(entries_original_key,