Fix database lock error that occurs after refreshing the page

pull/124/head
zanllp 2023-05-11 20:34:05 +08:00 committed by GitHub
parent 5c1b630d1b
commit 6ad84cd123
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -37,6 +37,7 @@ class DataBase:
ImageTag.create_table(conn)
Tag.create_table(conn)
Image.create_table(conn)
conn.commit()
clz.num += 1
if is_dev:
print(f"当前连接数{clz.num}")