mirror of https://gitlab.com/pamhyr/pamhyr2
Geometry: Profile copy/paste minor change.
parent
f083b7f6ef
commit
33a1fd2b52
|
|
@ -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'}
|
||||
|
|
|
|||
Loading…
Reference in New Issue