Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions backend/django_core/apps/anime/admin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,6 @@ class AnimeInfoAdmin(admin.ModelAdmin[AnimeModel]):
from .anime_genre import AnimeGenreAdmin as AnimeGenreAdmin
from .anime_openings_and_endings import (
AnimeEndingAdmin as AnimeEndingAdmin,
)
from .anime_openings_and_endings import (
AnimeOpeningAdmin as AnimeOpeningAdmin,
)
from .anime_theme import AnimeThemeAdmin as AnimeThemeAdmin
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import sys
from argparse import ArgumentParser
import sys
from typing import Any

from apps.characters.models import CharacterModel
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import sys
from argparse import ArgumentParser
import sys
from typing import Any

from django.core.management.base import BaseCommand
Expand Down
6 changes: 3 additions & 3 deletions backend/django_core/apps/anime/tasks.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import math

from PIL import Image, ImageStat
from celery import shared_task
from django.core.management import call_command
from django.db.models import Q
from django.utils import timezone
from modern_colorthief import ColorThief
from PIL import Image, ImageStat
from modern_colorthief import get_color
from utilities.rgb_to_hex import rgb_to_hex

from shinobi.builder.anime import AnimeBuilder
Expand Down Expand Up @@ -78,7 +78,7 @@ def set_field_color(
instance = AnimeModel.objects.get(pk=pk)

if image_field := getattr(instance, image_field_name):
color = ColorThief(image_field.path).get_color(quality=1)
color = get_color(image_field.path, quality=1)
rgb_value_to_hex = rgb_to_hex(color[0], color[1], color[2])
setattr(
instance,
Expand Down
1 change: 0 additions & 1 deletion backend/django_core/apps/api/admin.py

This file was deleted.

6 changes: 0 additions & 6 deletions backend/django_core/apps/api/apps.py

This file was deleted.

15 changes: 0 additions & 15 deletions backend/django_core/apps/api/bases/serializer.py

This file was deleted.

120 changes: 0 additions & 120 deletions backend/django_core/apps/api/filters/anime.py

This file was deleted.

50 changes: 0 additions & 50 deletions backend/django_core/apps/api/filters/character.py

This file was deleted.

13 changes: 0 additions & 13 deletions backend/django_core/apps/api/filters/comments.py

This file was deleted.

43 changes: 0 additions & 43 deletions backend/django_core/apps/api/filters/producer.py

This file was deleted.

52 changes: 0 additions & 52 deletions backend/django_core/apps/api/filters/staff.py

This file was deleted.

Empty file.
1 change: 0 additions & 1 deletion backend/django_core/apps/api/models.py

This file was deleted.

17 changes: 0 additions & 17 deletions backend/django_core/apps/api/permissions.py

This file was deleted.

Loading