tag empty string then no tag
parent
8cfccf1eb0
commit
5f37804f2b
|
|
@ -30,7 +30,11 @@ func uploadPTTodo(config Config, transaction *Transaction) error {
|
|||
return err
|
||||
}
|
||||
defer f.Close()
|
||||
if config.TodoTag == "" {
|
||||
fmt.Fprintf(f, `- {"todo":%q}%s`, transaction.Format(), "\n")
|
||||
} else {
|
||||
fmt.Fprintf(f, `- {"todo":%q, "tags":%q}%s`, transaction.Format(), config.TodoTag, "\n")
|
||||
}
|
||||
return f.Close()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue