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