创建 allowed_files.py

master
wangsiyuan 2023-12-28 19:17:01 +08:00
parent bb2104539c
commit 1ebdfa44c8
1 changed files with 2 additions and 0 deletions

View File

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