Geometry: Profile copy/paste minor change.

This commit is contained in:
Pierre-Antoine Rouby committed 2023-12-18 11:17:16 +01:00
1 parent f083b7f6ef
commit 33a1fd2b52
1 file changed
+10 -1
+10 -1
View File
@@ -184,8 +184,17 @@ class ProfileXYZ(Profile, SQLSubModel):
profile = None
try:
if len(header) == 0:
name = data[0]
kp = data[1]
reach = data[2]
status = data[3]
profile = cls(
*data[:-1], status=data[-1]
id=-1,
name=name,
kp=kp,
reach=reach,
status=status
)
else:
valid_header = {'name', 'reach', 'kp', 'status'}