Skip to content

Commit

Permalink
Updated to v0.8.0
Browse files Browse the repository at this point in the history
bringing changes from Develop
  • Loading branch information
RaSan147 authored May 5, 2023
2 parents c18462f + 92c4adf commit 4ff5fae
Show file tree
Hide file tree
Showing 20 changed files with 1,892 additions and 4,588 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# Version 0.8.0
## Client-side Changes:
* Zip page shows more info (Calculating notice)
## Server-side Changes:
* (RENAMED) Server.py util files
* Improved zip functionality and cache based speed boost
## Fixes:
* While calculating zip size, client kept requesting zip size, which caused server to calculate zip size again and again
* and make new zip instance again and again
## TODO:
* Study hard, exam soon



# Version 0.7.4
## Client-side Changes:
* Updated Error page (with http.cat 😸)
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.7.4
0.8.0
File renamed without changes.
File renamed without changes.
10 changes: 3 additions & 7 deletions dev_src/fs_utils.py → dev_src/_fs_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import urllib.parse


from exceptions import LimitExceed
from _exceptions import LimitExceed



Expand Down Expand Up @@ -194,12 +194,8 @@ def _get_tree_size(path, limit=None, must_read=False):
if limit and total>limit:
raise LimitExceed

if must_read:
try:
with open(entry.path, "rb") as f:
f.read(1)
except Exception:
continue
if must_read and not check_access(entry.path):
continue

return total

Expand Down
12 changes: 7 additions & 5 deletions dev_src/page_templates.py → dev_src/_page_templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"global_script",
"file_list",
"upload_form",
"js_script",
"file_list_script",
"video_script",
"zip_script",
"admin_page",
Expand Down Expand Up @@ -33,7 +33,7 @@ def __add__(self, other):


class config:
dev_mode = False
dev_mode = True
file_list = {}

pt_config = config()
Expand All @@ -56,12 +56,12 @@ def global_script():
def file_list():
return global_script() + get_template("html_file_list.html")

def file_list_script():
return get_template("html_script.html")

def upload_form():
return get_template("html_upload.html")

def js_script():
return global_script() + get_template("html_script.html")

def video_script():
return global_script() + get_template("html_vid.html")

Expand All @@ -74,3 +74,5 @@ def admin_page():
def error_page():
return directory_explorer_header() + get_template("html_error.html")

directory_explorer_header()

Loading

0 comments on commit 4ff5fae

Please sign in to comment.