Skip to content

Commit 026d428

Browse files
committed
years in summary'
1 parent 2a8867a commit 026d428

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

backend/src/db/load.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@ function buildFinlexUrl(statute: StatuteKey): { uri: string, uriOld: string } {
4545
const baseUrl = 'https://opendata.finlex.fi/finlex/avoindata/v1/akn/fi/act/statute'
4646
return {
4747
uri: `${baseUrl}/${statute.year}/${statute.number}/${statute.language}@`,
48-
uriOld: `${oldBaseUrl}/${statute.year}/${statute.number}/${statute.language}@${statute.version ? statute.version : ''}`
48+
uriOld: `${baseUrl}/${statute.year}/${statute.number}/${statute.language}@`,
49+
//uriOld: `${oldBaseUrl}/${statute.year}/${statute.number}/${statute.language}@${statute.version ? statute.version : ''}`,
50+
//uri: `${oldBaseUrl}/${statute.year}/${statute.number}/${statute.language}@${statute.version ? statute.version : ''}`
4951
};
5052
}
5153

52-
53-
5454
function parseJudgmentUrl(url: string): JudgmentKey {
5555
const u = new URL(url)
5656
const parts = u.pathname.split("/").filter(p => p !== "")

frontend/src/components/YearsPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const YearsPage = () => {
2929
const fetchAllYears = async () => {
3030
try {
3131
setLoading(true)
32-
const years = Array.from({ length: 20 }, (_, i) => 1960 + i) // 1960-1970
32+
const years = Array.from({ length: 76 }, (_, i) => 1950 + i)
3333

3434
const promises = years.map(async (year) => {
3535
try {

0 commit comments

Comments
 (0)