Skip to content

Commit 4c06476

Browse files
committed
SDK-378: Correct Flask example URL in README, code formatting
1 parent a5a0fda commit 4c06476

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ Both example applications utilise the env variables described in [Configuration]
220220
1. Change directories to the Flask project: `cd examples/yoti_example_flask`
221221
1. Install dependencies: `pip install -r requirements.txt`
222222
1. Run `python app.py`
223-
1. Navigate to https:////localhost:5000
223+
1. Navigate to https://localhost:5000
224224

225225
#### Django
226226

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
install_requires=['cryptography>=1.4', 'protobuf>=3.0.0',
2121
'requests>=2.0.0', 'future>=0.11.0'],
2222
extras_require={
23-
'examples': ['Django>=1.8', 'Flask>=0.10', 'python-dotenv>=0.7.1', 'django-sslserver>=0.2', 'pyopenssl>=18.0.0'],
23+
'examples': ['Django>=1.8', 'Flask>=0.10', 'python-dotenv>=0.7.1', 'django-sslserver>=0.2',
24+
'pyopenssl>=18.0.0'],
2425
},
2526
classifiers=[
2627
'Development Status :: 5 - Production/Stable',

yoti_python_sdk/activity_details.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# -*- coding: utf-8 -*-
2-
import collections
32
import json
43

4+
import collections
5+
56
from yoti_python_sdk import config
67
from yoti_python_sdk.protobuf.v1.protobuf import Protobuf
78

@@ -63,7 +64,8 @@ def try_convert_structured_postal_address_to_dict(self, field):
6364
def set_address_to_be_formatted_address_if_null(self):
6465
if 'postal_address' not in self.user_profile and 'structured_postal_address' in self.user_profile:
6566
if 'formatted_address' in self.user_profile['structured_postal_address']:
66-
self.user_profile['postal_address'] = self.user_profile['structured_postal_address']['formatted_address']
67+
self.user_profile['postal_address'] = self.user_profile['structured_postal_address'][
68+
'formatted_address']
6769

6870
def __iter__(self):
6971
yield 'user_id', self.user_id

yoti_python_sdk/tests/test_activity_details.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# -*- coding: utf-8 -*-
2-
import collections
32
import json
43

4+
import collections
55
import pytest
66

77
from yoti_python_sdk import config

0 commit comments

Comments
 (0)