Geometry: Fix copy/paste command.

This commit is contained in:
Pierre-Antoine Rouby committed 2023-12-18 10:44:11 +01:00
1 parent 25de73812b
commit f083b7f6ef
3 files changed
+7 -3

No files matched your search

+3 -2
View File
@@ -185,10 +185,10 @@ class ProfileXYZ(Profile, SQLSubModel):
try:
if len(header) == 0:
profile = cls(
*data
*data[:-1], status=data[-1]
)
else:
valid_header = {'name', 'reach', 'kp'}
valid_header = {'name', 'reach', 'kp', 'status'}
d = {}
for i, v in enumerate(data):
h = header[i].strip().lower().split(' ')[0]
@@ -197,6 +197,7 @@ class ProfileXYZ(Profile, SQLSubModel):
profile = cls(**d)
except Exception as e:
logger.error(e)
raise ClipboardFormatError(header, data)
return profile