Skip to content
Snippets Groups Projects
Unverified Commit 5c8c1f17 authored by Shamil K Muhammed's avatar Shamil K Muhammed
Browse files

Use the `with` statement on the connection object

Before, v.0.0.3, the connection was reinitialized everytime a new
auth request was sent to the module. But after that version, things
changed and a single connection was used.

This caused #2. It was because the transactions weren't commited
before querying again. Which stops the auth provider from getting
new data. So, the context manager is also used on the connection
everytime a query is sent to ensure the transactions are committed.

So, hopefully this commit fixes #2
parent 2c36ac91
Branches
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment