update
This commit is contained in:
@@ -86,16 +86,12 @@ def open_file(path):
|
|||||||
@F.app.route("/file/<path:path>")
|
@F.app.route("/file/<path:path>")
|
||||||
@F.check_api
|
@F.check_api
|
||||||
def file2(path):
|
def file2(path):
|
||||||
F.logger.debug('file2 :%s', path)
|
# 윈도우 drive 필요 없음
|
||||||
return send_from_directory('/', path)
|
return send_from_directory('/', path, as_attachment=True)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@F.app.route("/upload", methods=['GET', 'POST'])
|
@F.app.route("/upload", methods=['GET', 'POST'])
|
||||||
def upload():
|
def upload():
|
||||||
# curl -F file=@downloader_video.tar https://dev.soju6jan.com/up
|
|
||||||
#
|
|
||||||
try:
|
try:
|
||||||
if request.method == 'POST':
|
if request.method == 'POST':
|
||||||
f = request.files['file']
|
f = request.files['file']
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
VERSION="4.0.20"
|
VERSION="4.0.21"
|
||||||
@@ -61,7 +61,9 @@ def get_model_setting(package_name, logger, table_name=None):
|
|||||||
@staticmethod
|
@staticmethod
|
||||||
def get_datetime(key):
|
def get_datetime(key):
|
||||||
try:
|
try:
|
||||||
return datetime.strptime(ModelSetting.get(key), '%Y-%m-%d %H:%M:%S.%f')
|
tmp = ModelSetting.get(key)
|
||||||
|
if tmp != None and tmp != '':
|
||||||
|
return datetime.strptime(tmp, '%Y-%m-%d %H:%M:%S.%f')
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.error(f"Exception:{str(e)} [{key}]")
|
logger.error(f"Exception:{str(e)} [{key}]")
|
||||||
logger.error(traceback.format_exc())
|
logger.error(traceback.format_exc())
|
||||||
|
|||||||
BIN
lib/support/libsc/sc.cpython-310-aarch64-linux-gnu.so
Normal file
BIN
lib/support/libsc/sc.cpython-310-aarch64-linux-gnu.so
Normal file
Binary file not shown.
Reference in New Issue
Block a user