-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add virus scan #659
Conversation
dtable_events/db.py
Outdated
@@ -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): |
There was a problem hiding this comment.
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', '')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
没有SEAFEVENTS_LOG_DIR这个环境变量, 换一个seatable的日志环境变量,否则日志都会写在当前的目录下
5b77720
to
d177d05
Compare
567d092
to
7d56d16
Compare
7d56d16
to
5d2dadc
Compare
No description provided.