From d7c66a75981acc5fc1667e83ddc0672162f733df Mon Sep 17 00:00:00 2001 From: John Doty Date: Sun, 15 Dec 2024 07:57:18 -0800 Subject: [PATCH 1/2] Fix tests --- tests/test_database.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_database.py b/tests/test_database.py index c8f16a4..814a44b 100644 --- a/tests/test_database.py +++ b/tests/test_database.py @@ -99,6 +99,7 @@ FEED = feed.Feed( inserted_at=(REF_TIME * 1000) + index, title=f"Entry {index}", link=f"http://example.com/test/a{index}", + posted_at=(REF_TIME * 1000) + index, ) for index in range(100, 0, -1) ], @@ -121,6 +122,7 @@ OTHER_FEED = feed.Feed( inserted_at=(REF_TIME * 1000) + index, title=f"Entry {index}", link=f"http://example.com/other/a{index}", + posted_at=(REF_TIME * 1000) + index, ) for index in range(100, 0, -1) ], From e053e01e3abe082285277f3bb6cb458e0e737076 Mon Sep 17 00:00:00 2001 From: John Doty Date: Thu, 2 Jan 2025 07:59:09 -0800 Subject: [PATCH 2/2] Fix formatting problem --- cry/static/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cry/static/index.js b/cry/static/index.js index fae136b..3e109cd 100644 --- a/cry/static/index.js +++ b/cry/static/index.js @@ -30,7 +30,7 @@ function time_ago(time) { } const years = Math.round(weeks / 52); - return `{years}y` + return `${years}y` } function timeAgoTick(selector, format) {