mirror of
https://github.com/derrod/legendary.git
synced 2025-01-18 13:17:09 +00:00
[models] Allow initializing ChunkPart values
This commit is contained in:
parent
b0f5ea15a3
commit
6cfe7a74ea
|
@ -602,10 +602,10 @@ class FileManifest:
|
||||||
|
|
||||||
|
|
||||||
class ChunkPart:
|
class ChunkPart:
|
||||||
def __init__(self):
|
def __init__(self, guid=None, offset=0, size=0):
|
||||||
self.guid = None
|
self.guid = guid
|
||||||
self.offset = 0
|
self.offset = offset
|
||||||
self.size = 0
|
self.size = size
|
||||||
# caches for things that are "expensive" to compute
|
# caches for things that are "expensive" to compute
|
||||||
self._guid_str = None
|
self._guid_str = None
|
||||||
self._guid_num = None
|
self._guid_num = None
|
||||||
|
|
Loading…
Reference in a new issue