pup-py commited on
Commit
d27638a
·
1 Parent(s): 90967ba

internal server error my ass

Browse files
Files changed (1) hide show
  1. main.py +9 -10
main.py CHANGED
@@ -38,22 +38,21 @@ def files_in_folder(path: str):
38
  for f in path_glob
39
  ],
40
  columns=["path", "size", "mtime", "folder"],
41
- ).sort_values(["folder", "path"], ascending=[False, True])
 
 
 
 
 
 
 
 
42
 
43
  res["path"] = res.apply(
44
  lambda x: f"<a href=/files/{path}{x.path}{'/' if x.folder else ''}>{x.path}</a>",
45
  axis=1,
46
  )
47
 
48
- res.loc[-1] = [
49
- (
50
- f"<a href=/files/{folder.parent}/>..</a>",
51
- "",
52
- "",
53
- True,
54
- )
55
- ]
56
-
57
  table = to_html_datatable(
58
  df=res.drop(columns="folder"),
59
  classes="display nowrap compact",
 
38
  for f in path_glob
39
  ],
40
  columns=["path", "size", "mtime", "folder"],
41
+ )
42
+
43
+ res.loc[-1] = [
44
+ f"<a href=/files/{ROOT.parent}/>..</a>",
45
+ "",
46
+ "",
47
+ 2,
48
+ ]
49
+ res.sort_values(["folder", "path"], ascending=[False, True], inplace=True)
50
 
51
  res["path"] = res.apply(
52
  lambda x: f"<a href=/files/{path}{x.path}{'/' if x.folder else ''}>{x.path}</a>",
53
  axis=1,
54
  )
55
 
 
 
 
 
 
 
 
 
 
56
  table = to_html_datatable(
57
  df=res.drop(columns="folder"),
58
  classes="display nowrap compact",