Skip to content

Commit

Permalink
style: format
Browse files Browse the repository at this point in the history
  • Loading branch information
Aydawka committed Jun 26, 2024
1 parent 2a7458c commit 058da6e
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion apis/authentication.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
from flask import g, make_response, request
from flask_restx import Namespace, Resource, fields
from jsonschema import FormatChecker, ValidationError, validate
from sqlalchemy import desc

import model

Expand Down
1 change: 0 additions & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,6 @@ def on_after_request(resp):
expired_in = datetime.datetime.now(datetime.timezone.utc) + datetime.timedelta(
minutes=180
)
session = model.Session.query.get(decoded["session"])

new_token = jwt.encode(
{"user": decoded["user"], "exp": expired_in, "session": decoded["session"], "jti": decoded["jti"]},
Expand Down
3 changes: 0 additions & 3 deletions model/session.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
import datetime
import uuid

from . import User

from .db import db

from datetime import datetime


class Session(db.Model): # type: ignore
def __init__(self, user: User):
Expand Down

0 comments on commit 058da6e

Please sign in to comment.