From 2bb831c01c98991d77c85f7640d56ba66470b8cb Mon Sep 17 00:00:00 2001 From: Jess Portnoy Date: Wed, 16 Mar 2022 16:16:19 +0000 Subject: [PATCH] Revert "push https://github.com/kaltura/clients-generator/pull/769/files to 18.2.0." --- sources/python/KalturaClient/Client.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sources/python/KalturaClient/Client.py b/sources/python/KalturaClient/Client.py index 84188e279..390fbe231 100644 --- a/sources/python/KalturaClient/Client.py +++ b/sources/python/KalturaClient/Client.py @@ -450,7 +450,8 @@ def generateSession(adminSecretForSigning, userId, type_, partnerId, expiry=86400, privileges=''): rand = random.randint(0, 0x10000) expiry = int(time.time()) + expiry - fields = [partnerId, expiry, type_, rand, userId, privileges] + fields = [ + partnerId, partnerId, expiry, type_, rand, userId, privileges] fields = [ x if isinstance(x, six.binary_type) else six.text_type(x).encode(KalturaClient.ENCODING)