Skip to content

Commit

Permalink
Add 1 year option to timeframe
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Feb 27, 2024
1 parent fc09c1c commit 138cbcc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions assets/vue/ClassifySnippets.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
>Timeframe: 
<select v-model="params.timeframe" @change="refreshPage()" class="form-control cavil-pkg-timeframe">
<option value="any">Any</option>
<option value="year">1 year</option>
<option value="month">1 month</option>
<option value="week">1 week</option>
<option value="day">1 day</option>
Expand Down
2 changes: 1 addition & 1 deletion lib/Cavil/Controller/Snippet.pm
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ sub meta ($self) {
$v->optional('isLegal')->in('true', 'false');
$v->optional('notLegal')->in('true', 'false');
$v->optional('confidence')->num(0, 100);
$v->optional('timeframe')->in('any', 'month', 'week', 'day', 'hour');
$v->optional('timeframe')->in('any', 'year', 'month', 'week', 'day', 'hour');
$v->optional('before')->num;
return $self->reply->json_validation_error if $v->has_error;
my $is_classified = $v->param('isClassified') // 'true';
Expand Down

0 comments on commit 138cbcc

Please sign in to comment.