8000 Import CSRFProtect from a better spot so prisma picks it up (#450) · optimizely/python-sdk@f8da261 · GitHub
[go: up one dir, main page]

Skip to content

Commit f8da261

Browse files
pvcravenPaul V Craven
and
Paul V Craven
authored
Import CSRFProtect from a better spot so prisma picks it up (#450)
Co-authored-by: Paul V Craven <paul.craven@optimizley.com>
1 parent 8062f54 commit f8da261

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

tests/testapp/application.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
from os import environ
1818

1919
import user_profile_service
20-
from flask import CSRFProtect, Flask, request
20+
from flask import Flask, request
21+
from flask_wtf.csrf import CSRFProtect
2122

2223
from optimizely import logger, optimizely
2324
from optimizely.helpers import enums

tests/testapp/requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
Flask==2.2.5
1+
Flask==3.1.0
2+
flask-wtf==1.2.2

0 commit comments

Comments
 (0)
0