Skip to content

Commit

Permalink
Merge pull request #7191 from ckan/fix-same-date-in-changes
Browse files Browse the repository at this point in the history
Fix 404 when selecting the same date in the changes view
  • Loading branch information
kowh-ai authored Nov 14, 2022
2 parents 4898d12 + 7b3ad3e commit addd3fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changes/7191.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix 404 error when selecting the same date in the changes view
2 changes: 1 addition & 1 deletion ckanext/activity/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ def package_changes_multiple() -> Union[Response, str]: # noqa
# TODO: do something better here - go back to the previous page,
# display a warning that the user can't look at a sequence where
# the newest item is older than the oldest one, etc
if time_diff.total_seconds() < 0:
if time_diff.total_seconds() <= 0:
return package_changes(tk.h.get_request_param("current_new_id"))

done = False
Expand Down

0 comments on commit addd3fb

Please sign in to comment.