Add support for task expiration (#3546)
This commit is contained in:
committed by
GitHub
parent
2bd609afe3
commit
213b9d3aee
@@ -118,6 +118,7 @@ std::string configurationDefaults =
|
||||
"json.array=1 # Enclose JSON output in [ ]\n"
|
||||
"abbreviation.minimum=2 # Shortest allowed abbreviation\n"
|
||||
"news.version= # Latest version highlights read by the user\n"
|
||||
"expiration.on-sync=0 # Expire old tasks on sync\n"
|
||||
"\n"
|
||||
"# Dates\n"
|
||||
"dateformat=Y-M-D # Preferred input and display date format\n"
|
||||
@@ -853,13 +854,8 @@ int Context::dispatch (std::string &out)
|
||||
// The command know whether they need a GC.
|
||||
if (c->needs_gc ())
|
||||
{
|
||||
run_gc = config.getBoolean ("gc");
|
||||
tdb2.gc ();
|
||||
}
|
||||
else
|
||||
{
|
||||
run_gc = false;
|
||||
}
|
||||
|
||||
// This is something that is only needed for write commands with no other
|
||||
// filter processing.
|
||||
|
||||
Reference in New Issue
Block a user