fix bug where added_on is always 0 for downloads

This commit is contained in:
Victor Shyba 2022-03-21 04:38:51 -03:00
parent 34bd9e5cb4
commit c5e2f19dde
2 changed files with 8 additions and 1 deletions
lbry/blob

View file

@ -1,3 +1,4 @@
import time
import typing
@ -18,7 +19,7 @@ class BlobInfo:
self.blob_num = blob_num
self.length = length
self.iv = iv
self.added_on = added_on
self.added_on = added_on or time.time()
self.is_mine = is_mine
def as_dict(self) -> typing.Dict: