Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add virus scan #659

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open

Add virus scan #659

wants to merge 10 commits into from

Conversation

AlexCXC
Copy link
Contributor

@AlexCXC AlexCXC commented Aug 30, 2024

No description provided.

@@ -73,3 +87,14 @@ def create_db_tables(config):
raise RuntimeError("Create tables error: %s" % e)

Base.metadata.create_all(engine)


def prepare_db_tables(seafile_config):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

prepare_db_tables --> prepare_seafile_tables, db这个名称这个值得是dtable-events文件中的内容, 和seafileconfig中的seafile数据库区分开

for blk_id in seafile.blocks:
os.write(tfd, block_mgr.load_block(repo_id, 1, blk_id))

log_dir = os.path.join(os.environ.get('SEAFEVENTS_LOG_DIR', ''))
Copy link
Contributor

@r350178982 r350178982 Sep 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

没有SEAFEVENTS_LOG_DIR这个环境变量, 换一个seatable的日志环境变量,否则日志都会写在当前的目录下

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants