python tool: add default tags

This commit is contained in:
quenousimporte 2023-09-14 11:17:24 +02:00
parent 77fa0992a8
commit 230582920e
1 changed files with 2 additions and 1 deletions

View File

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