timekeeper

[Abandoned unfinished] CGI web application in C for time tracking. (My first, just a learning project)
Log | Files | Refs | README

commit 069b25c779d3e56e94957764821d877379bc217a
parent 2b46f2586f53f4c347e89bc5d40179cb3ad5f9e8
Author: Jacob R. Edwards <jacob@jacobedwards.org>
Date:   Tue, 19 Mar 2024 19:48:02 -0700

Add KeyPeriod fixing recent commits

The commits e8d56c and 66c34e required KeyPeriod to be defined, but
it wasn't committed yet. Whoops.

Diffstat:
Mkey.c | 3++-
Mkey.h | 1+
2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/key.c b/key.c @@ -41,5 +41,6 @@ struct kvalid keys[] = { [KeyDelete] = { kvalid_stringne, "delete" }, [KeyTime] = { kvalid_stringne, "time" }, [KeyFormat] = { kvalid_stringne, "format" }, - [KeyBreak] = { kvalid_stringne, "break" } + [KeyBreak] = { kvalid_stringne, "break" }, + [KeyPeriod] = { kvalid_uint, "period" } }; diff --git a/key.h b/key.h @@ -7,6 +7,7 @@ enum http_key { KeyTime, /* one of start, startbreak, endbreak, end */ KeyFormat, /* currently either tsv;epoch or ;epoch for /export */ KeyBreak, /* Break of timesheet period */ + KeyPeriod, /* Specify period for various things */ KeyMax };