Skip to content

Commit

Permalink
✨ feat: 使用7z减小镜像文件的大小
Browse files Browse the repository at this point in the history
  • Loading branch information
henrycs committed Nov 14, 2023
1 parent 0e50929 commit fb928a6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions omega/dataimporter/datascanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ async def load_cache_data(base_folder, redis, latest_ts):
logger.info("calendar info found in redis, skip importing")
return 0

# extract data
execfile = path.normpath(path.join(base_folder, "restore.sh"))
logger.info("extract data from 7z: %s", execfile)
os.system(execfile)

# 加载redis的核心数据
try:
logger.info("loading calendar...")
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ include = [
"tests/*"
]

version = "2.0.0a7"
version = "2.0.0a8"

[tool.poetry.dependencies]
python=">=3.8,<3.9"
Expand Down

0 comments on commit fb928a6

Please sign in to comment.