Skip to content

Commit

Permalink
Data refresh 290524
Browse files Browse the repository at this point in the history
  • Loading branch information
robjharrison committed May 29, 2024
1 parent 5a1515f commit cfdf231
Show file tree
Hide file tree
Showing 4 changed files with 4,095 additions and 9 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<h1>Ofsted ILACS Summary</h1>
<p>Summarised outcomes of published short and standard ILACS inspection reports by Ofsted, refreshed daily.<br/>An expanded version of the shown summary sheet, refreshed concurrently, is available to <a href='ofsted_childrens_services_overview.xlsx'>download here</a> as an .xlsx file. <br/>Data summary is based on the original <i>ILACS Outcomes Summary</i> published periodically by the ADCS:<a href='https://adcs.org.uk/inspection/article/ilacs-outcomes-summary'>https://adcs.org.uk/inspection/article/ilacs-outcomes-summary</a>.</p>
<p>Disclaimer: This summary is built from scraped data direct from https://reports.ofsted.gov.uk/ and the published PDF inspection report files. As a result of the nuances|variance within the inspection report content or pdf encoding, we're noting some problematic data extraction for a small number of LA's*.<br/> <a href="mailto:[email protected]?subject=Ofsted-Scrape-Tool">Feedback</a> on specific problems|inaccuracies|suggestions welcomed.<br/>**LA reports with issues: southend-on-sea, [overall, help_and_protection_grade,care_leavers_grade], nottingham,[inspection_framework, inspection_date], redcar and cleveland,[inspection_framework, inspection_date], knowsley,[inspector_name], stoke-on-trent,[inspector_name]</p>
<p><b>Summary data last updated: 23 05 2024 14:34</b></p>
<p><b>Summary data last updated: 29 05 2024 13:50</b></p>
<p><b>LA inspections last updated: []</b></p>
<div class="container">
<table border="1" class="dataframe">
Expand Down
14 changes: 6 additions & 8 deletions ofsted_childrens_services_inspection_scrape.py
Original file line number Diff line number Diff line change
Expand Up @@ -1196,6 +1196,9 @@ def save_to_html(data, column_order, local_link_column=None, web_link_column=Non
data.rename(columns={'Ltla23Cd': 'LTLA23CD', 'Urn': 'URN'}, inplace=True)


# Generate Most-recent-reports list
# Remove this block if running locally (i.e. not in GitCodespace)
#
# Obtain list of those inspection reports that have updates
# Provides easier visual on new/most-recent on refreshed web summary page

Expand All @@ -1214,20 +1217,15 @@ def save_to_html(data, column_order, local_link_column=None, web_link_column=Non
changed_files = [item.a_path for item in repo.index.diff(None) if item.a_path.startswith(inspection_reports_folder)]
# untracked_files = repo.untracked_files

# # Combine modified and untracked files
# all_changed_files = changed_files + untracked_files

# # Display the changed files (if needed)
# print("Modified/Untracked files:")
# for file in changed_files:
# print(file)

# changed repo files into a list for later use
las_with_new_inspection_list = [file for file in changed_files]

except Exception as e:
print(f"Error processing repository: {e}")
raise
# end of Most-recent-reports generate
# Chk + remove onward use of var las_with_new_inspection_list if running locally


# Initialise HTML content with title and CSS
html_content = f"""
Expand Down
Binary file modified ofsted_childrens_services_overview.xlsx
Binary file not shown.
Loading

0 comments on commit cfdf231

Please sign in to comment.