don't parse operation id (#112)

main
Joel Smith 2022-03-01 15:04:22 -08:00 committed by GitHub
parent c06edcf9b2
commit 0d2e697fa4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 2 deletions

View File

@ -28,7 +28,6 @@ class Operation {
QString name; QString name;
int numUsers; int numUsers;
OperationStatus status; OperationStatus status;
qint64 id;
static Operation parseData(QByteArray data) { static Operation parseData(QByteArray data) {
return parseJSONItem<Operation>(data, Operation::fromJson); return parseJSONItem<Operation>(data, Operation::fromJson);
@ -57,7 +56,6 @@ class Operation {
o.name = obj["name"].toString(); o.name = obj["name"].toString();
o.numUsers = obj["numUsers"].toInt(); o.numUsers = obj["numUsers"].toInt();
o.status = static_cast<OperationStatus>(obj["status"].toInt()); o.status = static_cast<OperationStatus>(obj["status"].toInt());
o.id = obj["id"].toVariant().toLongLong();
return o; return o;
} }