Skip to content

Commit

Permalink
Merge branch 'v0.24.0' into 163-disable-search-while-searching
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmiller committed May 24, 2023
2 parents 59128cf + 4dfd551 commit ec917a9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions changelog.md
Expand Up @@ -5,6 +5,9 @@
While waiting for search results the search button and form are now disabled unless
the user has changed the search string.

#### Fixes a sporadic failure in create_random_data
Fixes a bug where in an edge case create_random.data.date_generator would raise "ValueError: empty range for randrange()".

### 0.23.0 (Major Release)

#### Enhanced customisation of search results
Expand Down
2 changes: 1 addition & 1 deletion opal/management/commands/create_random_data.py
Expand Up @@ -100,7 +100,7 @@ def date_generator(*args, **kwargs):
else:
first_day = 1

if first_day == last_day:
if first_day >= last_day:
day = first_day
else:
day = random.randint(first_day, last_day)
Expand Down

0 comments on commit ec917a9

Please sign in to comment.