fix default value for file param

This commit is contained in:
Dmitry Belyaev 2021-09-22 16:06:59 +03:00
parent 57265c4e7c
commit de454fe5c1
Signed by: b4tman
GPG Key ID: 41A00BF15EA7E5F3

View File

@ -145,11 +145,11 @@ class WebPub1C:
pub_parser = reqparse.RequestParser() pub_parser = reqparse.RequestParser()
pub_parser.add_argument('name', required=True, type=str, help='name required') pub_parser.add_argument('name', required=True, type=str, help='name required')
pub_parser.add_argument('url', type=str) pub_parser.add_argument('url', type=str)
pub_parser.add_argument('file', type=str) pub_parser.add_argument('file', type=str, default='')
url_parser = reqparse.RequestParser() url_parser = reqparse.RequestParser()
url_parser.add_argument('url', type=str) url_parser.add_argument('url', type=str)
url_parser.add_argument('file', type=str) url_parser.add_argument('file', type=str, default='')
url_req_parser = reqparse.RequestParser() url_req_parser = reqparse.RequestParser()
url_req_parser.add_argument('url', type=str, required=True) url_req_parser.add_argument('url', type=str, required=True)