File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 16
16
import os
17
17
import pathlib
18
18
import re
19
- import shutil
20
19
import sqlite3
21
20
import threading
22
21
import unittest
28
27
29
28
# --- New SQLite Cache Implementation ---
30
29
30
+
31
31
class EquationCache :
32
32
def __init__ (self , db_path : Optional [str ] = None ):
33
33
if db_path is None :
@@ -44,14 +44,16 @@ def _init_db(self):
44
44
conn = sqlite3 .connect (self .db_path )
45
45
c = conn .cursor ()
46
46
# Added an 'error' column to store rendering errors
47
- c .execute ('''
47
+ c .execute (
48
+ """
48
49
CREATE TABLE IF NOT EXISTS equations (
49
50
eq_hash TEXT PRIMARY KEY,
50
51
mathml TEXT,
51
52
spans TEXT,
52
53
error TEXT
53
54
)
54
- ''' )
55
+ """
56
+ )
55
57
conn .commit ()
56
58
conn .close ()
57
59
@@ -126,6 +128,7 @@ def clear(self):
126
128
# Thread-local storage for Playwright and browser instances
127
129
_thread_local = threading .local ()
128
130
131
+
129
132
@dataclass
130
133
class BoundingBox :
131
134
x : float
You can’t perform that action at this time.
0 commit comments