mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-14 15:14:31 -04:00
remove redundant utils file
This commit is contained in:
parent
84507b68b5
commit
104553489f
5 changed files with 64 additions and 62 deletions
|
@ -12,7 +12,6 @@ from django.views.generic import FormView
|
|||
from django.contrib.auth.mixins import UserPassesTestMixin
|
||||
|
||||
from core.models import Snapshot
|
||||
from core.utils import get_icons
|
||||
from core.forms import AddLinkForm
|
||||
|
||||
from ..config import (
|
||||
|
@ -25,6 +24,7 @@ from ..config import (
|
|||
)
|
||||
from main import add
|
||||
from ..util import base_url, ansi_to_html
|
||||
from ..index.html import snapshot_icons
|
||||
|
||||
|
||||
class MainIndex(View):
|
||||
|
@ -108,7 +108,7 @@ class PublicArchiveView(ListView):
|
|||
if query:
|
||||
qs = Snapshot.objects.filter(title__icontains=query)
|
||||
for snapshot in qs:
|
||||
snapshot.icons = get_icons(snapshot)
|
||||
snapshot.icons = snapshot_icons(snapshot)
|
||||
return qs
|
||||
|
||||
def get(self, *args, **kwargs):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue