Split task format from internal storage
This commit is contained in:
2
upload.go
Normal file → Executable file
2
upload.go
Normal file → Executable file
@@ -12,7 +12,7 @@ import (
|
||||
func Upload(config Config, transaction *Transaction) error {
|
||||
params := url.Values{
|
||||
"list": {config.TodoList},
|
||||
"title": {fmt.Sprintf("%v: %s @ %s @ %s", transaction.Bank, transaction.Amount, transaction.Account, transaction.Date)},
|
||||
"title": {transaction.Format()},
|
||||
"tag": {config.TodoTag},
|
||||
}
|
||||
req, err := http.NewRequest("POST", config.TodoAddr+"/ajax.php?newTask", strings.NewReader(params.Encode()))
|
||||
|
||||
Reference in New Issue
Block a user