diff --git a/cry/static/index.js b/cry/static/index.js index 3e109cd..fae136b 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 814a44b..c8f16a4 100644 --- a/tests/test_database.py +++ b/tests/test_database.py @@ -99,7 +99,6 @@ 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) ], @@ -122,7 +121,6 @@ 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) ],