File tree Expand file tree Collapse file tree 3 files changed +15
-3
lines changed
Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ function LastUpdated() {
2121
2222 useEffect ( ( ) => {
2323 const getLastUpdated = async ( ) => {
24- const getLastUpdatedSQL = 'select max(createddate) from requests_2024 ;' ;
24+ const getLastUpdatedSQL = 'select max(createddate) from requests_2025 ;' ;
2525
2626 const lastUpdatedAsArrowTable = await conn . query ( getLastUpdatedSQL ) ;
2727 const results = ddbh . getTableData ( lastUpdatedAsArrowTable ) ;
@@ -40,7 +40,9 @@ function LastUpdated() {
4040 < div >
4141 < Typography variant = "body2" className = { classes . lastUpdated } >
4242 { toNonBreakingSpaces (
43- `Data last updated ${ moment ( lastUpdated ) . format ( 'MM/DD/YY' ) } `
43+ //* Quickfix - hard coded date last updated until 2025 data available
44+ // `Data last updated ${moment(lastUpdated).format('MM/DD/YY')}`
45+ `Data last updated 12/31/24`
4446 ) }
4547 </ Typography >
4648 </ div >
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ class MapContainer extends React.Component {
7070 this . setState ( { isTableLoading : true } ) ;
7171 const { conn, tableNameByYear, setDbStartTime } = this . context ;
7272 const startDate = this . props . startDate ; // directly use the startDate prop transformed for redux store
73- const year = moment ( startDate ) . year ( ) ; // extrac the year
73+ const year = moment ( startDate ) . year ( ) ; // extract the year
7474 const datasetFileName = `requests${ year } .parquet` ;
7575
7676 // Create the year data table if not exist already
Original file line number Diff line number Diff line change @@ -14,6 +14,9 @@ import moment from 'moment';
1414const datasets = {
1515 parquet : {
1616 // huggingface
17+ //* Quick fix - update url when 2025 data available
18+ hfYtd2025 :
19+ 'https://huggingface.co/datasets/311-data/2024/resolve/main/2024.parquet' , // 2025 year-to-date
1720 hfYtd2024 :
1821 'https://huggingface.co/datasets/311-data/2024/resolve/main/2024.parquet' , // 2024 year-to-date
1922 hfYtd2023 :
@@ -63,6 +66,13 @@ function DbProvider({ children, startDate }) {
6366 ) ;
6467
6568 // register parquet
69+ await newDb . registerFileURL (
70+ 'requests2025.parquet' ,
71+ //* Quick fix - change hfYtd2024 to hfYtd2025 when 2025 data available
72+ datasets . parquet . hfYtd2024 ,
73+ 4 , // HTTP = 4. For more options: https://tinyurl.com/DuckDBDataProtocol
74+ ) ;
75+
6676 await newDb . registerFileURL (
6777 'requests2024.parquet' ,
6878 datasets . parquet . hfYtd2024 ,
You can’t perform that action at this time.
0 commit comments