Commit 33a1fd2b authored by Pierre-Antoine Rouby's avatar Pierre-Antoine Rouby
Browse files

Geometry: Profile copy/paste minor change.

Showing with 10 additions and 1 deletion
+10 -1
......@@ -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'}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment