From 0b98e6c3901fbeb980a4c7855b4ea9c2d6ec7f0e Mon Sep 17 00:00:00 2001 From: Serg Date: Tue, 5 Nov 2019 00:00:58 +0300 Subject: [PATCH 1/2] Help message about save_file return added. --- flask_pymongo/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flask_pymongo/__init__.py b/flask_pymongo/__init__.py index 896c485..b90ad42 100644 --- a/flask_pymongo/__init__.py +++ b/flask_pymongo/__init__.py @@ -182,7 +182,7 @@ def get_upload(filename): return response def save_file(self, filename, fileobj, base="fs", content_type=None, **kwargs): - """Save a file-like object to GridFS using the given filename. + """Save a file-like object to GridFS using the given filename. Returns the "_id" of the created file. .. code-block:: python From 3955016f6cf3e0db749199911158495056cf6230 Mon Sep 17 00:00:00 2001 From: Serg Date: Tue, 5 Nov 2019 08:10:27 +0300 Subject: [PATCH 2/2] Style changes --- flask_pymongo/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/flask_pymongo/__init__.py b/flask_pymongo/__init__.py index b90ad42..3001684 100644 --- a/flask_pymongo/__init__.py +++ b/flask_pymongo/__init__.py @@ -182,7 +182,8 @@ def get_upload(filename): return response def save_file(self, filename, fileobj, base="fs", content_type=None, **kwargs): - """Save a file-like object to GridFS using the given filename. Returns the "_id" of the created file. + """Save a file-like object to GridFS using the given filename. + Return the "_id" of the created file. .. code-block:: python