GameSentenceMiner 2.10.1__py3-none-any.whl → 2.10.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/ocr/owocr_helper.py +3 -2
- GameSentenceMiner/util/audio_offset_selector.py +11 -1
- GameSentenceMiner/util/gsm_utils.py +2 -2
- GameSentenceMiner/util/ss_selector.py +17 -4
- GameSentenceMiner/web/templates/index.html +10 -10
- GameSentenceMiner/web/texthooking_page.py +11 -0
- {gamesentenceminer-2.10.1.dist-info → gamesentenceminer-2.10.3.dist-info}/METADATA +1 -1
- {gamesentenceminer-2.10.1.dist-info → gamesentenceminer-2.10.3.dist-info}/RECORD +12 -12
- {gamesentenceminer-2.10.1.dist-info → gamesentenceminer-2.10.3.dist-info}/WHEEL +0 -0
- {gamesentenceminer-2.10.1.dist-info → gamesentenceminer-2.10.3.dist-info}/entry_points.txt +0 -0
- {gamesentenceminer-2.10.1.dist-info → gamesentenceminer-2.10.3.dist-info}/licenses/LICENSE +0 -0
- {gamesentenceminer-2.10.1.dist-info → gamesentenceminer-2.10.3.dist-info}/top_level.txt +0 -0
@@ -56,6 +56,7 @@ class EventManager:
|
|
56
56
|
|
57
57
|
def __init__(self):
|
58
58
|
self.events = []
|
59
|
+
self.ids = []
|
59
60
|
self.events_dict = {}
|
60
61
|
self._connect()
|
61
62
|
self._create_table()
|
@@ -86,6 +87,7 @@ class EventManager:
|
|
86
87
|
line = GameLine(line_id, text, timestamp, None, None, 0)
|
87
88
|
event = EventItem(line, event_id, text, timestamp, False, timestamp < initial_time)
|
88
89
|
self.events.append(event)
|
90
|
+
self.ids.append(event_id)
|
89
91
|
self.events_dict[event_id] = event
|
90
92
|
|
91
93
|
def __iter__(self):
|
@@ -97,6 +99,7 @@ class EventManager:
|
|
97
99
|
def add_gameline(self, line: GameLine):
|
98
100
|
new_event = EventItem(line, line.id, line.text, line.time, False, False)
|
99
101
|
self.events_dict[line.id] = new_event
|
102
|
+
self.ids.append(line.id)
|
100
103
|
self.events.append(new_event)
|
101
104
|
# self.store_to_db(new_event)
|
102
105
|
# event_queue.put(new_event)
|
@@ -111,11 +114,15 @@ class EventManager:
|
|
111
114
|
|
112
115
|
def add_event(self, event):
|
113
116
|
self.events.append(event)
|
117
|
+
self.ids.append(event.id)
|
114
118
|
event_queue.put(event)
|
115
119
|
|
116
120
|
def get(self, event_id):
|
117
121
|
return self.events_dict.get(event_id)
|
118
122
|
|
123
|
+
def get_ids(self):
|
124
|
+
return self.ids
|
125
|
+
|
119
126
|
def close_connection(self):
|
120
127
|
if self.conn:
|
121
128
|
self.conn.close()
|
@@ -238,6 +245,10 @@ def textreplacements():
|
|
238
245
|
def get_data():
|
239
246
|
return jsonify([event.to_dict() for event in event_manager])
|
240
247
|
|
248
|
+
@app.route('/get_ids', methods=['GET'])
|
249
|
+
def get_ids():
|
250
|
+
return jsonify(event_manager.get_ids())
|
251
|
+
|
241
252
|
@app.route('/clear_history', methods=['POST'])
|
242
253
|
def clear_history():
|
243
254
|
temp_em = EventManager()
|
@@ -19,7 +19,7 @@ GameSentenceMiner/ocr/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3h
|
|
19
19
|
GameSentenceMiner/ocr/gsm_ocr_config.py,sha256=6Ncq79Poolc7htBiusLZfMRlyThxm1Aky1Z4DlGIY58,3940
|
20
20
|
GameSentenceMiner/ocr/ocrconfig.py,sha256=_tY8mjnzHMJrLS8E5pHqYXZjMuLoGKYgJwdhYgN-ny4,6466
|
21
21
|
GameSentenceMiner/ocr/owocr_area_selector.py,sha256=59zrzamPbBeU_Pfdeivc8RawlLXhXqNrhkBrhc69ZZo,47057
|
22
|
-
GameSentenceMiner/ocr/owocr_helper.py,sha256=
|
22
|
+
GameSentenceMiner/ocr/owocr_helper.py,sha256=m_tIqujNTIZKQsqyL7AlzWM394aM77wL2l_S7LNFKlU,19886
|
23
23
|
GameSentenceMiner/ocr/ss_picker.py,sha256=0IhxUdaKruFpZyBL-8SpxWg7bPrlGpy3lhTcMMZ5rwo,5224
|
24
24
|
GameSentenceMiner/owocr/owocr/__init__.py,sha256=87hfN5u_PbL_onLfMACbc0F5j4KyIK9lKnRCj6oZgR0,49
|
25
25
|
GameSentenceMiner/owocr/owocr/__main__.py,sha256=XQaqZY99EKoCpU-gWQjNbTs7Kg17HvBVE7JY8LqIE0o,157
|
@@ -29,15 +29,15 @@ GameSentenceMiner/owocr/owocr/ocr.py,sha256=fWrbKomSrdkSdlEiMGTKb6-F7wCgfaZZNBUo
|
|
29
29
|
GameSentenceMiner/owocr/owocr/run.py,sha256=wOileOoP1djCpOLgg7d-nWrYS78NctClNTscLZ3kwDc,55198
|
30
30
|
GameSentenceMiner/owocr/owocr/screen_coordinate_picker.py,sha256=Na6XStbQBtpQUSdbN3QhEswtKuU1JjReFk_K8t5ezQE,3395
|
31
31
|
GameSentenceMiner/util/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
32
|
-
GameSentenceMiner/util/audio_offset_selector.py,sha256=
|
32
|
+
GameSentenceMiner/util/audio_offset_selector.py,sha256=8Stk3BP-XVIuzRv9nl9Eqd2D-1yD3JrgU-CamBywJmY,8542
|
33
33
|
GameSentenceMiner/util/configuration.py,sha256=ibwIJlfhzjmlQJLhwnrcRJ7jImPN5S-pw62wa2eBZWo,28538
|
34
34
|
GameSentenceMiner/util/electron_config.py,sha256=3VmIrcXhC-wIMMc4uqV85NrNenRl4ZUbnQfSjWEwuig,9852
|
35
35
|
GameSentenceMiner/util/ffmpeg.py,sha256=t0tflxq170n8PZKkdw8fTZIUQfXD0p_qARa9JTdhBTc,21530
|
36
|
-
GameSentenceMiner/util/gsm_utils.py,sha256=
|
36
|
+
GameSentenceMiner/util/gsm_utils.py,sha256=_279Fu9CU6FEh4cP6h40TWOt_BrqmPgytfumi8y53Ew,11491
|
37
37
|
GameSentenceMiner/util/model.py,sha256=ROH-uO55im7H4COonyyPZQ8l9-8EPtyOk7l_DNEonbk,6630
|
38
38
|
GameSentenceMiner/util/notification.py,sha256=0OnEYjn3DUEZ6c6OtPjdVZe-DG-QSoMAl9fetjjCvNU,3874
|
39
39
|
GameSentenceMiner/util/package.py,sha256=u1ym5z869lw5EHvIviC9h9uH97bzUXSXXA8KIn8rUvk,1157
|
40
|
-
GameSentenceMiner/util/ss_selector.py,sha256=
|
40
|
+
GameSentenceMiner/util/ss_selector.py,sha256=cbjMxiKOCuOfbRvLR_PCRlykBrGtm1LXd6u5czPqkmc,4793
|
41
41
|
GameSentenceMiner/util/text_log.py,sha256=KvNE0yT9FGh0aJNj22BgqFiallhB8D2Ibc19ZMZV1dM,5481
|
42
42
|
GameSentenceMiner/util/communication/__init__.py,sha256=xh__yn2MhzXi9eLi89PeZWlJPn-cbBSjskhi1BRraXg,643
|
43
43
|
GameSentenceMiner/util/communication/send.py,sha256=Wki9qIY2CgYnuHbmnyKVIYkcKAN_oYS4up93XMikBaI,222
|
@@ -48,7 +48,7 @@ GameSentenceMiner/util/downloader/download_tools.py,sha256=mvnOjDHFlV1AbjHaNI7md
|
|
48
48
|
GameSentenceMiner/util/downloader/oneocr_dl.py,sha256=w7WbPad2LTuz3TAKtJlrslLQlUe-gJMQfOnDwmO98h4,10341
|
49
49
|
GameSentenceMiner/web/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
50
50
|
GameSentenceMiner/web/service.py,sha256=2o62dZfDSBxBH5zCjrcHCX5yAc3PmGeP2lr07n8-dgo,5779
|
51
|
-
GameSentenceMiner/web/texthooking_page.py,sha256=
|
51
|
+
GameSentenceMiner/web/texthooking_page.py,sha256=LhUP-F9xfO6V-5dBS4tXUuPFcyQllcUIMxqaGXM9Y1I,15645
|
52
52
|
GameSentenceMiner/web/static/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
53
53
|
GameSentenceMiner/web/static/apple-touch-icon.png,sha256=OcMI8af_68DA_tweOsQ5LytTyMwm7-hPW07IfrOVgEs,46132
|
54
54
|
GameSentenceMiner/web/static/favicon-96x96.png,sha256=lOePzjiKl1JY2J1kT_PMdyEnrlJmi5GWbmXJunM12B4,16502
|
@@ -59,12 +59,12 @@ GameSentenceMiner/web/static/style.css,sha256=bPZK0NVMuyRl5NNDuT7ZTzVLKlvSsdmeVH
|
|
59
59
|
GameSentenceMiner/web/static/web-app-manifest-192x192.png,sha256=EfSNnBmsSaLfESbkGfYwbKzcjKOdzuWo18ABADfN974,51117
|
60
60
|
GameSentenceMiner/web/static/web-app-manifest-512x512.png,sha256=wyqgCWCrLEUxSRXmaA3iJEESd-vM-ZmlTtZFBY4V8Pk,230819
|
61
61
|
GameSentenceMiner/web/templates/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
62
|
-
GameSentenceMiner/web/templates/index.html,sha256=
|
62
|
+
GameSentenceMiner/web/templates/index.html,sha256=6Cm_HWGzavgqAvC7SGT0u8R6_kRFUNIEyAzTHDC6c1A,214780
|
63
63
|
GameSentenceMiner/web/templates/text_replacements.html,sha256=tV5c8mCaWSt_vKuUpbdbLAzXZ3ATZeDvQ9PnnAfqY0M,8598
|
64
64
|
GameSentenceMiner/web/templates/utility.html,sha256=3flZinKNqUJ7pvrZk6xu__v67z44rXnaK7UTZ303R-8,16946
|
65
|
-
gamesentenceminer-2.10.
|
66
|
-
gamesentenceminer-2.10.
|
67
|
-
gamesentenceminer-2.10.
|
68
|
-
gamesentenceminer-2.10.
|
69
|
-
gamesentenceminer-2.10.
|
70
|
-
gamesentenceminer-2.10.
|
65
|
+
gamesentenceminer-2.10.3.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
66
|
+
gamesentenceminer-2.10.3.dist-info/METADATA,sha256=UjHQv68bNu6u8cll7g3vUJLR1SuBnpKVc8nf7s43Emw,7354
|
67
|
+
gamesentenceminer-2.10.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
68
|
+
gamesentenceminer-2.10.3.dist-info/entry_points.txt,sha256=2APEP25DbfjSxGeHtwBstMH8mulVhLkqF_b9bqzU6vQ,65
|
69
|
+
gamesentenceminer-2.10.3.dist-info/top_level.txt,sha256=V1hUY6xVSyUEohb0uDoN4UIE6rUZ_JYx8yMyPGX4PgQ,18
|
70
|
+
gamesentenceminer-2.10.3.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|