Skip to content

Commit

Permalink
only add smart attribute if its actually set
Browse files Browse the repository at this point in the history
  • Loading branch information
dothebart committed Sep 26, 2018
1 parent 7b4e7cb commit 7095efe
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pyArango/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,12 @@ def _checkCollectionList(lst) :
payload = {
"name": name,
"edgeDefinitions": ed,
"orphanCollections": graphClass._orphanedCollections,
"isSmart": isSmart
"orphanCollections": graphClass._orphanedCollections
}

if isSmart :
payload['isSmart'] = isSmart

if options:
payload['options'] = options

Expand Down

0 comments on commit 7095efe

Please sign in to comment.