From 230582920e776e6b553c7ce521ee313cf61f9ba5 Mon Sep 17 00:00:00 2001 From: quenousimporte Date: Thu, 14 Sep 2023 11:17:24 +0200 Subject: [PATCH] python tool: add default tags --- cli/python/app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cli/python/app.py b/cli/python/app.py index 7f462b8..5edae7b 100644 --- a/cli/python/app.py +++ b/cli/python/app.py @@ -4,6 +4,7 @@ import subprocess import urllib.parse import os import sys +import time abspath = os.path.abspath(__file__) dname = os.path.dirname(abspath) @@ -90,7 +91,7 @@ while not (command == "quit" or command == "exit" or command == "q"): if answer == "y" or answer == "yes": note = { "title": command, - "content": "---\ntitle: " + command + "\n---\n\n" + "content": "---\ntitle: " + command + "\ndate: " + time.strftime("%Y-%m-%d") + "\ntags: \n---\n\n" } data.insert(0, note) editnote(note)