Enhancements - rules.cpp

- Converted rules.cpp to work under 1.8.0.
- Relocated validReportColumns, validSortColumns to parse.cpp.
This commit is contained in:
Paul Beckingham 2009-06-11 20:35:58 -04:00
parent ac9dae9af8
commit 66011acbf8
5 changed files with 91 additions and 92 deletions

View file

@ -390,7 +390,7 @@ int getDueState (const std::string& due)
if (dt < midnight)
return 2;
Date nextweek = midnight + 7 * 86400;
Date nextweek = midnight + context.config.get ("due", 7) * 86400;
if (dt < nextweek)
return 1;
}