Skip to content

Commit

Permalink
Don't allow hit limit reset times greater than 23
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] authored and [email protected] committed Dec 20, 2017
1 parent 8bc338c commit e56c636
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# NZB Hydra changelog

----------
### 0.2.231
Fixed: Prevent hit limit reset times from being greater than 23. See [#690](https://github.com/theotherp/nzbhydra/issues/690).

### 0.2.230
Added: Option to define expiry of remember-me cookie. See [#676](https://github.com/theotherp/nzbhydra/issues/676).

Expand Down
4 changes: 2 additions & 2 deletions static/js/nzbhydra.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion static/js/nzbhydra.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions ui-src/js/config-fields-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -1518,13 +1518,13 @@ function getIndexerBoxFields(model, parentModel, isInitial, injector) {
templateOptions: {
type: 'number',
label: 'Hit reset time',
help: 'UTC hour of day at which the API hit counter is reset (0==24). Leave empty for a rolling reset counter'
help: 'UTC hour of day at which the API hit counter is reset (0-23). Leave empty for a rolling reset counter'
},
validators: {
timeOfDay: {
expression: function ($viewValue, $modelValue) {
var value = $modelValue || $viewValue;
return value >= 0 && value <= 24;
return value >= 0 && value < 24;
},
message: '$viewValue + " is not a valid hour of day (0-24)"'
}
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.2.230
0.2.231

0 comments on commit e56c636

Please sign in to comment.