2022.11.05 (01. 링크 애니 요청 페이지 일부 수정 및 일부 구현 저장용)

This commit is contained in:
2022-11-06 15:54:46 +09:00
parent e976773824
commit b0fa6c4bda
21 changed files with 3526 additions and 1912 deletions

View File

@@ -4,9 +4,12 @@
import os
import re
import json
import time
import traceback
import platform
import subprocess
from functools import wraps
# third-party
from sqlalchemy.ext.declarative import DeclarativeMeta
# sjva 공용
@@ -38,7 +41,21 @@ def read_file(filename):
logger.error(traceback.format_exc())
def yommi_timeit(func):
@wraps(func)
def timeit_wrapper(*args, **kwargs):
start_time = time.perf_counter()
result = func(*args, **kwargs)
end_time = time.perf_counter()
total_time = end_time - start_time
print(f'Function {func.__name__}{args} {kwargs} Took {total_time:.4f} seconds')
return result
return timeit_wrapper
class Util(object):
@staticmethod
def change_text_for_use_filename(text):
# text = text.replace('/', '')