Skip to content

Commit

Permalink
Fixing formatting and unused imports.
Browse files Browse the repository at this point in the history
  • Loading branch information
cecily_carver committed Jan 11, 2025
1 parent 00f4851 commit be6c5cd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion mysql_mimic/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ def _session_context(self):
current_user=self.username,
variables=self.variables,
database=self.database,
timestamp=self.timestamp
timestamp=self.timestamp,
)

def timezone(self) -> timezone_:
Expand Down
16 changes: 11 additions & 5 deletions mysql_mimic/variables_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from sqlglot import expressions as exp

from mysql_mimic.intercept import value_to_expression, expression_to_value
from mysql_mimic.intercept import value_to_expression
from mysql_mimic.variables import Variables


Expand All @@ -15,13 +15,19 @@ class SessionContext:
variables: Variables
timestamp: datetime

def __init__(self, connection_id: int, current_user: str, variables: Variables, database: str,
timestamp: datetime):
def __init__(
self,
connection_id: int,
current_user: str,
variables: Variables,
database: str,
timestamp: datetime,
):
self.connection_id = connection_id
self.external_user = variables.get('external_user')
self.external_user = variables.get("external_user")
self.variables = variables
self.current_user = current_user
self.version = variables.get('version')
self.version = variables.get("version")
self.database = database
self.timestamp = timestamp

Expand Down

0 comments on commit be6c5cd

Please sign in to comment.