Remove daily_notes -> date, and * -> done edges
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Peter Stuifzand 2020-06-17 22:06:37 +02:00
parent b14542a01f
commit 0e7d908e2f

View File

@ -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