Skip to content

Commit 1fe9c80

Browse files
committed
fix python again
1 parent 02929e0 commit 1fe9c80

File tree

3 files changed

+0
-14
lines changed

3 files changed

+0
-14
lines changed

templates/python/model_generic.mustache

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -196,15 +196,6 @@ class {{classname}}({{#parent}}{{{.}}}{{/parent}}{{^parent}}BaseModel{{/parent}}
196196
_dict[_key] = _value
197197

198198
{{/isAdditionalPropertiesTrue}}
199-
{{#allVars}}
200-
{{#isNullable}}
201-
# set to None if {{{name}}} (nullable) is None
202-
# and model_fields_set contains the field
203-
if self.{{name}} is None and "{{{name}}}" in self.model_fields_set:
204-
_dict['{{{baseName}}}'] = None
205-
206-
{{/isNullable}}
207-
{{/allVars}}
208199
return _dict
209200

210201
@classmethod

templates/python/search_helpers.mustache

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,6 @@
205205
206206
query_parameters = QueryParametersSerializer(dict(sorted(restrictions.items()))).encoded()
207207
208-
print(query_parameters)
209-
210208
secured_key = hmac.new(
211209
parent_api_key.encode(encoding="utf-8"),
212210
query_parameters.encode(encoding="utf-8"),

templates/ruby/search_helpers.mustache

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,9 +179,6 @@ def generate_secured_api_key(parent_api_key, restrictions = {})
179179
end.join('&')
180180

181181
hmac = OpenSSL::HMAC.hexdigest(OpenSSL::Digest.new('sha256'), parent_api_key, url_encoded_restrictions)
182-
183-
puts "hmac: #{hmac}"
184-
puts "url_encoded_restrictions: #{url_encoded_restrictions}"
185182
Base64.encode64("#{hmac}#{url_encoded_restrictions}").gsub("\n", '')
186183
end
187184

0 commit comments

Comments
 (0)