Skip to content

Commit 031ee81

Browse files
committed
SDK-303: Reformatted code
1 parent 40af4d5 commit 031ee81

File tree

13 files changed

+416
-423
lines changed

13 files changed

+416
-423
lines changed

examples/aml/app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import sys
22
from os import environ
3-
from os.path import join, dirname
43

54
from dotenv import load_dotenv
5+
from os.path import join, dirname
66

77
from yoti_python_sdk import Client
88
from yoti_python_sdk import aml
@@ -40,4 +40,4 @@ def cli_exception(exception_type, value, tb):
4040
print("AML Result for {0} {1}:".format(given_names, family_name))
4141
print("On PEP list: " + str(aml_result.on_pep_list))
4242
print("On fraud list: " + str(aml_result.on_fraud_list))
43-
print("On watchlist: " + str(aml_result.on_watch_list))
43+
print("On watchlist: " + str(aml_result.on_watch_list))

examples/yoti_example_django/yoti_example/templates/index.html

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,17 @@
88
</head>
99

1010
<body>
11-
<!-- Your website content -->
11+
<!-- Your website content -->
1212

13-
<!-- This span will create the Yoti button -->
14-
<span data-yoti-application-id="{{app_id}}">
13+
<!-- This span will create the Yoti button -->
14+
<span data-yoti-application-id="{{app_id}}">
1515
Log in with Yoti
1616
</span>
1717

18-
<!-- This script snippet will also be required in your HTML body -->
19-
<script>
18+
<!-- This script snippet will also be required in your HTML body -->
19+
<script>
2020
_ybg.init()
21-
</script>
21+
22+
</script>
2223
</body>
2324
</html>

examples/yoti_example_django/yoti_example/views.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from django.views.generic import TemplateView
22
from dotenv import load_dotenv, find_dotenv
3+
34
load_dotenv(find_dotenv())
45

56
from yoti_python_sdk import Client

examples/yoti_example_flask/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# noinspection PyPackageRequirements
22
import os
3-
from os.path import join, dirname
43

54
from dotenv import load_dotenv
65
from flask import Flask, render_template, request
6+
from os.path import join, dirname
77

88
from yoti_python_sdk import Client
99

examples/yoti_example_flask/templates/index.html

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,17 @@
88
</head>
99

1010
<body>
11-
<!-- Your website content -->
11+
<!-- Your website content -->
1212

13-
<!-- This span will create the Yoti button -->
14-
<span data-yoti-application-id="{{app_id}}">
13+
<!-- This span will create the Yoti button -->
14+
<span data-yoti-application-id="{{app_id}}">
1515
Log in with Yoti
16-
</span>
16+
</span>
1717

18-
<!-- This script snippet will also be required in your HTML body -->
19-
<script>
18+
<!-- This script snippet will also be required in your HTML body -->
19+
<script>
2020
_ybg.init()
21-
</script>
21+
22+
</script>
2223
</body>
2324
</html>

yoti_python_sdk/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33

44
import json
55
from os import environ
6-
from os.path import isfile, expanduser
76

87
import requests
98
from cryptography.fernet import base64
9+
from os.path import isfile, expanduser
1010
from past.builtins import basestring
1111

1212
import yoti_python_sdk

0 commit comments

Comments
 (0)