Skip to content
This repository has been archived by the owner on Sep 11, 2022. It is now read-only.

Commit

Permalink
Auto Update 2022-03-11 11:55:06
Browse files Browse the repository at this point in the history
  • Loading branch information
a76yyyy committed Mar 11, 2022
1 parent 5900e65 commit feb4136
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions IP_Sync/ip_Sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ def sqldump(sql_file,table_college_info_sql_file,table_iprange_info_sql_file,tab
def sqlite3dump(sqlite3file):
print( "将SQLite3数据库压缩为gz文件: \n---------------处理中, 请稍候---------------")
if default_gz_export:
os.system('gzip -kfq %s' % ( sqlite3file))
os.system('gzip -cfq %s > %s.gz' % (sqlite3file, sqlite3file))
print( "SQLite3数据库gz压缩档导出成功! \n")

if __name__ == '__main__':
Expand Down Expand Up @@ -319,12 +319,12 @@ def sqlite3dump(sqlite3file):
sqlite3file = config['sqlite3'].ip_database
sqlite3gz = sqlite3file+'.gz'
if os.path.exists(sqlite3gz) and not os.path.exists(sqlite3file):
os.system('gzip -dkf %s' % ( sqlite3gz))
os.system('gzip -cdf %s > %s' % (sqlite3gz, sqlite3file))
sqlite3 = sqlite3_Database(sqlite3file)
if ipv4update:
dat2SQLite3(sqlite3)
convertipv4(sqlite3,sqlite3file=sqlite3file)
if ipv6update:
# if ipv6update:
db2SQLite3(sqlite3)
try:
sqlite3.__del__()
Expand Down
Binary file modified data/czipdata_version.bin
Binary file not shown.

0 comments on commit feb4136

Please sign in to comment.