mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-28 13:37:20 +02:00
TW-1300
- TW-1300 _get could use return codes (thanks to Scott Kostyshak).
This commit is contained in:
parent
32272addd0
commit
501194abfa
6 changed files with 107 additions and 5 deletions
|
@ -157,9 +157,9 @@ const std::string DOM::get (const std::string& name, const Task& task)
|
|||
std::string canonical;
|
||||
|
||||
// <attr>
|
||||
if (name == "id") return format (task.id);
|
||||
else if (name == "urgency") return format (task.urgency_c ());
|
||||
else if (A3::is_attribute (name, canonical)) return task.get (canonical);
|
||||
if (task.size () && name == "id") return format (task.id);
|
||||
else if (task.size () && name == "urgency") return format (task.urgency_c ());
|
||||
else if (task.size () && A3::is_attribute (name, canonical)) return task.get (canonical);
|
||||
|
||||
// <id>.<name>
|
||||
if (n.getInt (id))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue