first commit
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import os, sqlite3, datetime
|
||||
BASE = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||
DB = os.path.join(BASE, "db", "research.db")
|
||||
NOTE = "该员工自助培训页为嵌入式LMS,持续加载无法稳定截图,已跳过。"
|
||||
conn = sqlite3.connect(DB)
|
||||
now = datetime.datetime.now().isoformat(timespec="seconds")
|
||||
cur = conn.execute(
|
||||
"UPDATE features SET note=?, updated_at=? WHERE screenshot_path LIKE ?",
|
||||
(NOTE, now, "%09_我的培训%"))
|
||||
conn.commit()
|
||||
print("rows updated:", cur.rowcount)
|
||||
conn.close()
|
||||
Reference in New Issue
Block a user