diff --git a/ckanext/odsh/plugin.py b/ckanext/odsh/plugin.py index c27478a9d3873f05b543aebb40017069ef7104c3..2a3ea4882716fb4d7941ff782e3e47f6d635d5ce 100644 --- a/ckanext/odsh/plugin.py +++ b/ckanext/odsh/plugin.py @@ -541,7 +541,7 @@ class OdshPlugin(plugins.SingletonPlugin, DefaultTranslation, DefaultDatasetForm def _is_package_new(self, pkg_dict): date_last_modified = self._get_date_from_string(pkg_dict['metadata_modified']) - is_new = odsh_helpers.date_checker.is_within_last_month(date_last_modified) + is_new = odsh_helpers.is_within_last_month(date_last_modified) return is_new def _get_date_from_string(self, date_time_str):