GameSentenceMiner 2.8.2__py3-none-any.whl → 2.8.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- GameSentenceMiner/web/static/utility.html +5 -2
- GameSentenceMiner/web/texthooking_page.py +0 -5
- {gamesentenceminer-2.8.2.dist-info → gamesentenceminer-2.8.3.dist-info}/METADATA +1 -1
- {gamesentenceminer-2.8.2.dist-info → gamesentenceminer-2.8.3.dist-info}/RECORD +8 -8
- {gamesentenceminer-2.8.2.dist-info → gamesentenceminer-2.8.3.dist-info}/WHEEL +0 -0
- {gamesentenceminer-2.8.2.dist-info → gamesentenceminer-2.8.3.dist-info}/entry_points.txt +0 -0
- {gamesentenceminer-2.8.2.dist-info → gamesentenceminer-2.8.3.dist-info}/licenses/LICENSE +0 -0
- {gamesentenceminer-2.8.2.dist-info → gamesentenceminer-2.8.3.dist-info}/top_level.txt +0 -0
@@ -131,6 +131,7 @@
|
|
131
131
|
let newCheckboxState = false;
|
132
132
|
let hoveredCheckboxes = new Set();
|
133
133
|
let checkboxes = []; // Will hold all checkbox elements
|
134
|
+
let checkboxes_being_updated = new Set();
|
134
135
|
|
135
136
|
// Shift click selection variable
|
136
137
|
let lastChecked = null;
|
@@ -152,8 +153,8 @@
|
|
152
153
|
addNewEvent(ev)
|
153
154
|
}
|
154
155
|
const checkbox = document.querySelector(`[data-event-id="${ev.id}"]`);
|
155
|
-
if (checkbox) {
|
156
|
-
checkbox.checked = ev.checked;
|
156
|
+
if (checkbox && !checkboxes_being_updated.has(ev.id)) {
|
157
|
+
checkbox.checked = ev.checked;
|
157
158
|
}
|
158
159
|
});
|
159
160
|
checkboxes = Array.from(document.querySelectorAll('#session-events input[type="checkbox"]')); // Update checkboxes array after new events
|
@@ -215,11 +216,13 @@
|
|
215
216
|
|
216
217
|
async function toggleCheckbox(id, checked) {
|
217
218
|
try {
|
219
|
+
checkboxes_being_updated.add(id);
|
218
220
|
const res = await fetch('/update', {
|
219
221
|
method: 'POST',
|
220
222
|
headers: { 'Content-Type': 'application/json' },
|
221
223
|
body: JSON.stringify({ id, checked })
|
222
224
|
});
|
225
|
+
checkboxes_being_updated.delete(id);
|
223
226
|
if (!res.ok) {
|
224
227
|
throw new Error(`HTTP error! Status: ${res.status}`);
|
225
228
|
}
|
@@ -148,14 +148,9 @@ def update_event():
|
|
148
148
|
event_id = data.get('id')
|
149
149
|
checked = data.get('checked')
|
150
150
|
|
151
|
-
logger.info(event_id)
|
152
|
-
logger.info(checked)
|
153
|
-
|
154
151
|
if event_id is None or checked is None:
|
155
152
|
return jsonify({'error': 'Missing id or checked status'}), 400
|
156
153
|
|
157
|
-
logger.info(event_manager.get(event_id))
|
158
|
-
|
159
154
|
event_manager.get(event_id).checked = checked
|
160
155
|
|
161
156
|
return jsonify({'error': 'Event not found'}), 404
|
@@ -38,7 +38,7 @@ GameSentenceMiner/vad/silero_trim.py,sha256=ULf3zwS-JMsY82cKF7gZxREHw8L6lgpWF2U1
|
|
38
38
|
GameSentenceMiner/vad/vosk_helper.py,sha256=125X8C9NxFPlWWpoNsbOnEqKx8RCjXN109zNx_QXhyg,6070
|
39
39
|
GameSentenceMiner/vad/whisper_helper.py,sha256=JJ-iltCh813XdjyEw0Wn5DaErf6PDqfH0Efu1Md8cIY,3543
|
40
40
|
GameSentenceMiner/web/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
41
|
-
GameSentenceMiner/web/texthooking_page.py,sha256=
|
41
|
+
GameSentenceMiner/web/texthooking_page.py,sha256=INCBzEUk0I_452OpDnfDMeGMaMCAJWSmq14S4V1ToHA,7227
|
42
42
|
GameSentenceMiner/web/static/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
43
43
|
GameSentenceMiner/web/static/apple-touch-icon.png,sha256=OcMI8af_68DA_tweOsQ5LytTyMwm7-hPW07IfrOVgEs,46132
|
44
44
|
GameSentenceMiner/web/static/favicon-96x96.png,sha256=lOePzjiKl1JY2J1kT_PMdyEnrlJmi5GWbmXJunM12B4,16502
|
@@ -47,12 +47,12 @@ GameSentenceMiner/web/static/favicon.svg,sha256=x305AP6WlXGtrXIZlaQspdLmwteoFYUo
|
|
47
47
|
GameSentenceMiner/web/static/site.webmanifest,sha256=kaeNT-FjFt-T7JGzOhXH7YSqsrDeiplZ2kDxCN_CFU4,436
|
48
48
|
GameSentenceMiner/web/static/style.css,sha256=bPZK0NVMuyRl5NNDuT7ZTzVLKlvSsdmeVHmAW4y5FM0,7001
|
49
49
|
GameSentenceMiner/web/static/text_replacements.html,sha256=LJ2qBEZvyMaBJLLJzDIw0baiTeusplbn4jkpyHM6ZBI,8613
|
50
|
-
GameSentenceMiner/web/static/utility.html,sha256=
|
50
|
+
GameSentenceMiner/web/static/utility.html,sha256=58br1whazdfrevWCHEzYNa1_VdBvebDDX2tWlX2QrFs,9964
|
51
51
|
GameSentenceMiner/web/static/web-app-manifest-192x192.png,sha256=EfSNnBmsSaLfESbkGfYwbKzcjKOdzuWo18ABADfN974,51117
|
52
52
|
GameSentenceMiner/web/static/web-app-manifest-512x512.png,sha256=wyqgCWCrLEUxSRXmaA3iJEESd-vM-ZmlTtZFBY4V8Pk,230819
|
53
|
-
gamesentenceminer-2.8.
|
54
|
-
gamesentenceminer-2.8.
|
55
|
-
gamesentenceminer-2.8.
|
56
|
-
gamesentenceminer-2.8.
|
57
|
-
gamesentenceminer-2.8.
|
58
|
-
gamesentenceminer-2.8.
|
53
|
+
gamesentenceminer-2.8.3.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
54
|
+
gamesentenceminer-2.8.3.dist-info/METADATA,sha256=T1TY8jUlCkVraJ4K9J77yf5WAQKwZ2XNztPkYEsjHrk,5912
|
55
|
+
gamesentenceminer-2.8.3.dist-info/WHEEL,sha256=SmOxYU7pzNKBqASvQJ7DjX3XGUF92lrGhMb3R6_iiqI,91
|
56
|
+
gamesentenceminer-2.8.3.dist-info/entry_points.txt,sha256=2APEP25DbfjSxGeHtwBstMH8mulVhLkqF_b9bqzU6vQ,65
|
57
|
+
gamesentenceminer-2.8.3.dist-info/top_level.txt,sha256=V1hUY6xVSyUEohb0uDoN4UIE6rUZ_JYx8yMyPGX4PgQ,18
|
58
|
+
gamesentenceminer-2.8.3.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|