Fix results not showing
This commit is contained in:
@@ -258,7 +258,7 @@ INSERT INTO CountryCodes (code, name_en, name_fi, name_sv) VALUES ('GBR', 'Unite
|
|||||||
|
|
||||||
|
|
||||||
-- TODO: Clean this next year. Its now here just to get the show running
|
-- TODO: Clean this next year. Its now here just to get the show running
|
||||||
-- INSERT INTO Contest (year, finals_date) VALUES (2025, '2025-05-16');
|
INSERT INTO Contest (year, finals_date) VALUES (2025, '2025-05-16');
|
||||||
|
|
||||||
-- =============================================================================
|
-- =============================================================================
|
||||||
-- DEBUG DATA
|
-- DEBUG DATA
|
||||||
|
|||||||
@@ -103,7 +103,7 @@ async def list_results(result_type: ResultType):
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@router.get("/global", response_model=list[Result])
|
@router.get("/", response_model=list[Result])
|
||||||
async def list_global_results():
|
async def list_global_results():
|
||||||
with get_connection() as conn:
|
with get_connection() as conn:
|
||||||
df = conn.execute("SELECT * FROM ReviewSummaryGlobal").fetchdf()
|
df = conn.execute("SELECT * FROM ReviewSummaryGlobal").fetchdf()
|
||||||
|
|||||||
Reference in New Issue
Block a user