forked from LBRYCommunity/lbry-sdk
fix bug where added_on is always 0 for downloads
This commit is contained in:
parent
34bd9e5cb4
commit
c5e2f19dde
2 changed files with 8 additions and 1 deletions
lbry/blob
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue