From 2038799d7a12efb5a1d9db65f17907f07cd9c38f Mon Sep 17 00:00:00 2001 From: "L. Karkkainen" Date: Fri, 27 Jan 2023 04:30:23 +0000 Subject: [PATCH] Remove parent directory link from table --- sanic/pages/autoindex.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/sanic/pages/autoindex.py b/sanic/pages/autoindex.py index 33bccb33..d53938df 100644 --- a/sanic/pages/autoindex.py +++ b/sanic/pages/autoindex.py @@ -53,13 +53,9 @@ class AutoIndex(BasePage): def _file_table(self, files: Iterable[FileInfo]): with self.doc.table(class_="autoindex"): - self._parent() for f in files: self._file_row(**f) - def _parent(self): - self._file_row("📁", "..", "", "") - def _file_row( self, icon: str,