From 0e7d908e2f81598bf13bf71d7e0379e94e8522e8 Mon Sep 17 00:00:00 2001 From: Peter Stuifzand Date: Wed, 17 Jun 2020 22:06:37 +0200 Subject: [PATCH] Remove daily_notes -> date, and * -> done edges --- main.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/main.go b/main.go index 1a3f0a9..d40201f 100644 --- a/main.go +++ b/main.go @@ -513,8 +513,14 @@ func (h *graphHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { edgeSet := make(map[Edge]bool) for key, references := range refs { + if key == "DONE" { + continue + } if toID, e := nodeMap[key]; e { for _, item := range references { + if item.Name == "Daily_Notes" && strings.HasSuffix(key, "_2020") { + continue + } if fromID, e := nodeMap[item.Name]; e { if fromID == toID { continue