File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
clients/algoliasearch-client-python/algoliasearch/http Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,5 @@ def get(self) -> str:
2020 return self .value
2121
2222 def add (self , segment : str , version : Optional [str ] = __version__ ) -> Self :
23- self .value += "; {} ({})" .format (
24- segment , __version__ if version is None else version
25- )
23+ self .value += "; {} ({})" .format (segment , version or __version__ )
2624 return self
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ def main():
1313 client = SearchClientSync (
1414 environ .get ("ALGOLIA_APPLICATION_ID" ), environ .get ("ALGOLIA_ADMIN_KEY" )
1515 )
16- client .add_user_agent ("playground" )
16+ client .add_user_agent ("playground" , None )
1717
1818 print ("user_agent" , client ._config ._user_agent .get ())
1919 print ("client initialized" , client )
You can’t perform that action at this time.
0 commit comments