diff options
| author | Ben Winston | 2024-06-03 19:58:54 -0400 |
|---|---|---|
| committer | Ben Winston | 2024-06-03 19:58:54 -0400 |
| commit | 770f194677027c1961bbfd77e536bd4d7e97b40e (patch) | |
| tree | fdbbb823b819589d1c348f218592e953e0b0edca | |
| parent | 5b43f3caaeb35504a8f65eb4f20b78c9118d9e53 (diff) | |
add published as search option
| -rw-r--r-- | booki.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -598,6 +598,9 @@ void search(int argc, char* argv[], char* booki_file) { } else if (ATTR_MATCH(field, "pages")) { if (!match_int(search_opts.args[i], book.pages)) break; + } else if (ATTR_MATCH(field, "published")) { + if (!match_int(search_opts.args[i], book.published)) + break; } else { printf("unsupported field: %s\n", field); break; |
