Skip to content

Commit 7095efe

Browse files
committed
only add smart attribute if its actually set
1 parent 7b4e7cb commit 7095efe

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

pyArango/database.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,12 @@ def _checkCollectionList(lst) :
158158
payload = {
159159
"name": name,
160160
"edgeDefinitions": ed,
161-
"orphanCollections": graphClass._orphanedCollections,
162-
"isSmart": isSmart
161+
"orphanCollections": graphClass._orphanedCollections
163162
}
164163

164+
if isSmart :
165+
payload['isSmart'] = isSmart
166+
165167
if options:
166168
payload['options'] = options
167169

0 commit comments

Comments
 (0)