Skip to content

Commit

Permalink
Updates the order of Python imports
Browse files Browse the repository at this point in the history
  • Loading branch information
jimchamp committed Dec 9, 2024
1 parent 4678c5b commit ae1a799
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion openlibrary/core/models.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
"""Models of various OL objects.
"""

import json
import logging
from collections import defaultdict
from dataclasses import dataclass, field
Expand Down
4 changes: 1 addition & 3 deletions openlibrary/plugins/upstream/addtag.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
"""Handlers for adding and editing tags."""

from typing import NoReturn

import web

from infogami.core.db import ValidationException
from infogami.infobase.client import ClientException
from infogami.utils import delegate
from infogami.utils.view import add_flash_message, public

from openlibrary.accounts import get_current_user
from openlibrary.plugins.upstream import spamcheck
from openlibrary.plugins.upstream.addbook import safe_seeother, trim_doc
Expand Down Expand Up @@ -227,7 +225,7 @@ def POST(self, tag_type):
"message.html", "Oops", 'Something went wrong. Please try again later.'
)
if not (patron := get_current_user()):
raise web.seeother(f'/account/login')
raise web.seeother('/account/login')
if not self.has_permission(patron):
raise web.unauthorized()

Expand Down
1 change: 0 additions & 1 deletion openlibrary/plugins/worksearch/subjects.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
from infogami.plugins.api.code import jsonapi
from infogami.utils import delegate
from infogami.utils.view import render_template, safeint

from openlibrary.core.lending import add_availability
from openlibrary.core.models import Subject, Tag
from openlibrary.solr.query_utils import query_dict_to_str
Expand Down

0 comments on commit ae1a799

Please sign in to comment.