File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
python/ql/lib/semmle/python/frameworks Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -194,8 +194,8 @@ module Flask {
194194 API:: Node api_node ;
195195
196196 FlaskViewClass ( ) {
197- this . getParent ( ) = Views:: View:: subclassRef ( ) . getAnImmediateUse ( ) . asExpr ( ) and
198- api_node . getAnImmediateUse ( ) . asExpr ( ) = this . getParent ( )
197+ api_node = Views:: View:: subclassRef ( ) and
198+ this . getParent ( ) = api_node . getAnImmediateUse ( ) . asExpr ( )
199199 }
200200
201201 /** Gets a function that could handle incoming requests, if any. */
@@ -219,8 +219,8 @@ module Flask {
219219 */
220220 class FlaskMethodViewClass extends FlaskViewClass {
221221 FlaskMethodViewClass ( ) {
222- this . getParent ( ) = Views:: MethodView:: subclassRef ( ) . getAnImmediateUse ( ) . asExpr ( ) and
223- api_node . getAnImmediateUse ( ) . asExpr ( ) = this . getParent ( )
222+ api_node = Views:: MethodView:: subclassRef ( ) and
223+ this . getParent ( ) = api_node . getAnImmediateUse ( ) . asExpr ( )
224224 }
225225
226226 override Function getARequestHandler ( ) {
You can’t perform that action at this time.
0 commit comments