Skip to content

Commit

Permalink
修复 sqlite数据库域名监控无法导入的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
mouday committed Apr 18, 2024
1 parent 9f4ae32 commit b0a2636
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions domain_admin/service/domain_info_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,14 +226,14 @@ def add_domain_from_file(filename, user_id):
lst = [
{
'domain': item['domain'],
'comment': item.get('comment'),
'group_id': group_map.get(item.get('group_name'), 0),
'comment': item.get('comment') or '',
'group_id': group_map.get(item.get('group_name')) or 0,
'tags_raw': json.dumps(item.get('tags'), ensure_ascii=False),
'domain_start_time': item.get('domain_start_date'),
'domain_expire_time': item.get('domain_expire_date'),
'domain_expire_days': item.get('real_domain_expire_days') or 0,
'icp_company': item.get('icp_company'),
'icp_licence': item.get('icp_licence'),
'icp_company': item.get('icp_company') or '',
'icp_licence': item.get('icp_licence') or '',
'user_id': user_id,
} for item in lst if item.get('root_domain')
]
Expand Down
1 change: 1 addition & 0 deletions domain_admin/service/domain_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ def sync_address_info_to_domain_info(domain_row):
expire_days=first_address_row.real_time_ssl_expire_days,
connect_status=connect_status,
update_time=datetime_util.get_datetime(),
version=DomainModel.version + 1
).where(
DomainModel.id == domain_row.id
).execute()
Expand Down

0 comments on commit b0a2636

Please sign in to comment.