def createNote(path, args): if "name" in args: global noteListDirty noteListDirty = True db.addNote(args["name"], "") return getNoteListCached()