创建 allowed_files.py

This commit is contained in:
2023-12-28 19:17:01 +08:00
parent bb2104539c
commit 1ebdfa44c8

View File

@@ -0,0 +1,2 @@
def allowed_excel(filename):
return '.' in filename and filename.rsplit('.', 1)[1].lower() in {'xlsx', 'xls'}