From ed309b67d36ded5319ef08fdf3d557258c0fe879 Mon Sep 17 00:00:00 2001 From: anonymous <anonymous> Date: Mon, 3 Jun 2019 11:20:22 +0200 Subject: [PATCH] bugfix for last commit --- ckanext/odsh/profiles.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ckanext/odsh/profiles.py b/ckanext/odsh/profiles.py index 084be5e8..460dba34 100644 --- a/ckanext/odsh/profiles.py +++ b/ckanext/odsh/profiles.py @@ -111,7 +111,7 @@ def resource_formats(): g.parse(urlresponse) # At the moment, there are 143 different file types listed, # if less than 120 are found, something went wrong. - if len(set([s for s in g.subjects()])) > 120: + if len(set([s for s in g.subjects()])) < 120: raise ValueError("Not enough subjects") # Save the content as backup if sys.version_info[0] == 2: -- GitLab