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) { 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) ],