Skip to content
Snippets Groups Projects
Commit e6878ad2 authored by anonymous's avatar anonymous
Browse files

fix missing helpers

parent 82c85a74
Branches
Tags
No related merge requests found
...@@ -541,7 +541,7 @@ class OdshPlugin(plugins.SingletonPlugin, DefaultTranslation, DefaultDatasetForm ...@@ -541,7 +541,7 @@ class OdshPlugin(plugins.SingletonPlugin, DefaultTranslation, DefaultDatasetForm
def _is_package_new(self, pkg_dict): def _is_package_new(self, pkg_dict):
date_last_modified = self._get_date_from_string(pkg_dict['metadata_modified']) 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 return is_new
def _get_date_from_string(self, date_time_str): def _get_date_from_string(self, date_time_str):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment