Skip to content

Commit

Permalink
wip don't use metadata json
Browse files Browse the repository at this point in the history
  • Loading branch information
Bjwebb committed Nov 7, 2024
1 parent 5784d64 commit 62e84cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dashboard/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def deep_merge(obj1, obj2):
for publisher, publisher_dict in ckan.items()
for dataset in publisher_dict.keys()
}
metadata = json.load(open(filepaths.join_stats_path('metadata.json')), object_pairs_hook=OrderedDict)
#metadata = json.load(open(filepaths.join_stats_path('metadata.json')), object_pairs_hook=OrderedDict)
with open(filepaths.join_data_path('downloads/errors')) as fp:
for line in fp:
if line != '.\n':
Expand Down
4 changes: 2 additions & 2 deletions dashboard/make_html.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
github_issues,
get_publisher_stats,
MAJOR_VERSIONS,
metadata,
publisher_name,
publishers_ordered_by_title,
is_valid_element,
Expand Down Expand Up @@ -109,7 +108,8 @@ def get_codelist_values(codelist_values_for_element):


# Store data processing times
date_time_data_obj = parser.parse(metadata['created_at'])
date_time_data_str = max(json.load(open("stats-calculated/gitdate.json")).values())
date_time_data_obj = parser.parse(date_time_data_str)

# Custom Jinja filters
app.jinja_env.filters['xpath_to_url'] = xpath_to_url
Expand Down

0 comments on commit 62e84cb

Please sign in to comment.