Skip to content

Commit

Permalink
Fix the circular import issue
Browse files Browse the repository at this point in the history
  • Loading branch information
kozlovsky committed Sep 25, 2023
1 parent 418b2ec commit 4018f39
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion pony/flask/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
from __future__ import absolute_import

import importlib

from pony.orm import db_session
from flask import request


flask_lib = importlib.import_module('flask')
request = getattr(flask_lib, 'request', None)


def _enter_session():
session = db_session()
Expand Down

0 comments on commit 4018f39

Please sign in to comment.