Skip to content

Commit

Permalink
chore: A litte cleanup #1279
Browse files Browse the repository at this point in the history
  • Loading branch information
vanlummelhuizen committed Jul 2, 2024
1 parent 807c896 commit 9d23c62
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion signbank/abstract_machine.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from signbank.dictionary.update_senses_mapping import add_sense_to_revision_history
from django.http import HttpResponse, HttpResponseRedirect, HttpResponseForbidden, HttpResponseBadRequest, JsonResponse
from guardian.shortcuts import get_objects_for_user
from signbank.api_token import hash_token, put_api_user_in_request
from signbank.api_token import put_api_user_in_request


def get_interface_language_api(request, user):
Expand Down
4 changes: 1 addition & 3 deletions signbank/api_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from signbank.dictionary.forms import *
from django.utils.translation import override, gettext_lazy as _, activate
from signbank.settings.server_specific import LANGUAGES, LEFT_DOUBLE_QUOTE_PATTERNS, RIGHT_DOUBLE_QUOTE_PATTERNS
from signbank.api_token import hash_token
from signbank.api_token import put_api_user_in_request
from signbank.abstract_machine import get_interface_language_api

from django.core.exceptions import ObjectDoesNotExist
Expand All @@ -33,8 +33,6 @@
from django.contrib.auth.models import Group, User
from signbank.zip_interface import *

from signbank.api_token import put_api_user_in_request


def api_fields(dataset, language_code='en', advanced=False):
activate(language_code)
Expand Down
2 changes: 1 addition & 1 deletion signbank/gloss_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from guardian.shortcuts import get_objects_for_user
from signbank.tools import get_interface_language_and_default_language_codes
from signbank.csv_interface import normalize_field_choice
from signbank.api_token import hash_token, put_api_user_in_request
from signbank.api_token import put_api_user_in_request
import datetime as DT

import ast
Expand Down

0 comments on commit 9d23c62

Please sign in to comment.