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 Sep 1, 2024
1 parent cd10ae5 commit 1f5d31b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion data.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ def deep_merge(obj1, obj2):
for publisher, publisher_dict in ckan.items()
for dataset in publisher_dict.keys()
}
metadata = json.load(open('./stats-calculated/metadata.json'), object_pairs_hook=OrderedDict)
#metadata = json.load(open('./stats-calculated/metadata.json'), object_pairs_hook=OrderedDict)
with open('./data/downloads/errors') as fp:
for line in fp:
if line != '.\n':
Expand Down
4 changes: 2 additions & 2 deletions 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 1f5d31b

Please sign in to comment.