Skip to content

Commit

Permalink
覆盖基础类上传下载函数
Browse files Browse the repository at this point in the history
  • Loading branch information
chendile committed Oct 16, 2023
1 parent e7c2789 commit 7709687
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions myapp/views/view_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ def save_store(self, dataset_id):

@expose("/upload/<dataset_id>", methods=["POST"])
# @pysnooper.snoop()
def upload(self, dataset_id):
def upload_dataset(self, dataset_id):
dataset = db.session.query(Dataset).filter_by(id=int(dataset_id)).first()
filename = request.form['filename']
partition = request.form.get('partition', '')
Expand Down Expand Up @@ -387,7 +387,7 @@ def upload(self, dataset_id):
@expose("/download/<dataset_id>", methods=["GET", "POST"])
@expose("/download/<dataset_id>/<partition>", methods=["GET", "POST"])
# @pysnooper.snoop()
def download(self, dataset_id, partition=''):
def download_dataset(self, dataset_id, partition=''):

# 生成下载链接
def path2url(path):
Expand Down

0 comments on commit 7709687

Please sign in to comment.