Skip to content

Commit 013ee83

Browse files
committed
Changing how as_test is set
1 parent 8036f3a commit 013ee83

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

zencoder/core.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -237,9 +237,7 @@ def create(self, input, outputs=None, options=None):
237237
@param outputs: a list of output dictionaries
238238
@param options: a dictionary of job options
239239
"""
240-
as_test = 0
241-
if (self.test):
242-
as_test = 1
240+
as_test = int(self.test)
243241

244242
data = {"api_key": self.api_key, "input": input, "test": as_test}
245243
if outputs:

0 commit comments

Comments
 (0)