Skip to content

Commit 48061a5

Browse files
Resolve conflict
2 parents f897c59 + 0cf3cd8 commit 48061a5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

sdk/diffgram/file/compound_file.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,13 @@ class CompoundFile:
109109
child_files: List[CompoundChildFile]
110110
instance_list: List[dict]
111111

112-
def __init__(self, project: Project, name: str, directory_id: int, instance_list: List[dict] = []):
112+
def __init__(self, project: Project, name: str, directory_id: int, instance_list: List[dict] = [], file_type: str = 'compound'):
113113
self.project = project
114114
self.name = name
115115
self.directory_id = directory_id
116116
self.child_files = []
117117
self.instance_list = instance_list
118+
self.type = file_type
118119

119120
@staticmethod
120121
def from_dict(project: Project, dir_id: int, dict_data: dict):
@@ -165,7 +166,8 @@ def __create_compound_parent_file(self):
165166
data = {
166167
'name': self.name,
167168
'directory_id': self.directory_id,
168-
'instance_list': self.instance_list
169+
'instance_list': self.instance_list,
170+
'type': self.type
169171
}
170172
response = self.project.session.post(url = self.project.host + url,
171173
json = data)

0 commit comments

Comments
 (0)