Integer seconds
This commit is contained in:
parent
64b24388d8
commit
33b998236b
1 changed files with 1 additions and 1 deletions
|
|
@ -295,7 +295,7 @@ class Entry:
|
|||
return Entry(id=id, inserted_at=insert_time, title=title, link=link)
|
||||
|
||||
def time_ago(self) -> str:
|
||||
inserted = self.inserted_at / 1000
|
||||
inserted = int(self.inserted_at / 1000)
|
||||
seconds = int(time.time()) - inserted
|
||||
if seconds <= 90:
|
||||
return f"{seconds}s"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue