We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d8a0159 + 670af75 commit 7895429Copy full SHA for 7895429
labkey/experiment.py
@@ -106,7 +106,7 @@ class ExpObject(object):
106
def __init__(self, **kwargs):
107
self.lsid = kwargs.pop('lsid', None) # Life Science identifier
108
self.name = kwargs.pop('name', None)
109
- self.id = kwargs.pop('id', 0)
+ self.id = kwargs.pop('id', None)
110
self.row_id = self.id
111
self.comment = kwargs.pop('comment', None)
112
self.created = kwargs.pop('created', None)
@@ -126,6 +126,10 @@ def to_json(self):
126
'modifiedBy': self.modified_by,
127
'properties': self.properties
128
}
129
+
130
+ if self.id is not None:
131
+ data.update({'id': self.id})
132
133
if self.lsid is not None:
134
data.update({'lsid': self.lsid})
135
0 commit comments