Skip to content

Commit f74ba5b

Browse files
committed
version 1.202512122025, improved file filtering, thanks tclerckx
1 parent c5e6e8d commit f74ba5b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

apps/_dashboard/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,9 +343,9 @@ def visible(root, name, filter=filter):
343343
name.startswith(".")
344344
or name.startswith("#")
345345
or name.endswith("~")
346-
or name[-4:] in (".pyc", "pyo")
346+
or name[-4:] in (".pyc", ".pyo")
347347
or name == "__pycache__"
348-
or root == "uploads"
348+
or os.path.basename(root) == "uploads"
349349
)
350350

351351
if not os.path.exists(top) or not os.path.isdir(top):

py4web/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
__author__ = "Massimo Di Pierro <massimo.dipierro@gmail.com>"
44
__license__ = "BSD-3-Clause"
5-
__version__ = "1.20251209.1"
5+
__version__ = "1.20251212.1"
66

77

88
def _maybe_gevent():

0 commit comments

Comments
 (0)