otter-service-stdalone 1.1.25__py3-none-any.whl → 1.1.26__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.
- otter_service_stdalone/__init__.py +1 -1
- otter_service_stdalone/app.py +4 -2
- {otter_service_stdalone-1.1.25.dist-info → otter_service_stdalone-1.1.26.dist-info}/METADATA +1 -1
- {otter_service_stdalone-1.1.25.dist-info → otter_service_stdalone-1.1.26.dist-info}/RECORD +7 -7
- {otter_service_stdalone-1.1.25.dist-info → otter_service_stdalone-1.1.26.dist-info}/WHEEL +0 -0
- {otter_service_stdalone-1.1.25.dist-info → otter_service_stdalone-1.1.26.dist-info}/entry_points.txt +0 -0
- {otter_service_stdalone-1.1.25.dist-info → otter_service_stdalone-1.1.26.dist-info}/top_level.txt +0 -0
@@ -1 +1 @@
|
|
1
|
-
__version__ = "1.1.
|
1
|
+
__version__ = "1.1.26"
|
otter_service_stdalone/app.py
CHANGED
@@ -3,6 +3,7 @@ import tornado.ioloop
|
|
3
3
|
import tornado.web
|
4
4
|
import tornado.auth
|
5
5
|
import os
|
6
|
+
import re
|
6
7
|
import uuid
|
7
8
|
import tornado.websocket
|
8
9
|
from otter_service_stdalone import fs_logging as log
|
@@ -37,7 +38,7 @@ class WebSocketHandler(tornado.websocket.WebSocketHandler):
|
|
37
38
|
if user_id not in session_callbacks:
|
38
39
|
session_callbacks[user_id] = tornado.ioloop.PeriodicCallback(lambda: self.send_results(user_id), 1000)
|
39
40
|
session_callbacks[user_id].start()
|
40
|
-
|
41
|
+
|
41
42
|
def on_message(self, message):
|
42
43
|
pass # No action needed on incoming message
|
43
44
|
|
@@ -255,7 +256,8 @@ class Upload(BaseHandler):
|
|
255
256
|
if autograder is not None and notebooks is not None:
|
256
257
|
log.write_logs(results_path, "Step 1: Upload accepted", "", "debug", log_debug)
|
257
258
|
notebooks_fname = notebooks['filename']
|
258
|
-
|
259
|
+
sanitized_filename = re.sub(r"[ ,./\\\[\]{}()]]", "", os.path.splitext(notebooks_fname)[0])
|
260
|
+
results_path = f"{sanitized_filename}-{results_path}"
|
259
261
|
notebooks_extn = os.path.splitext(notebooks_fname)[1]
|
260
262
|
if notebooks_extn == ".zip":
|
261
263
|
notebooks_name = results_path + notebooks_extn
|
@@ -1,6 +1,6 @@
|
|
1
|
-
otter_service_stdalone/__init__.py,sha256=
|
1
|
+
otter_service_stdalone/__init__.py,sha256=nMFQZEWuqinhLfp5WtJf8zuYSjLowSMbH7-9OyiH_eA,23
|
2
2
|
otter_service_stdalone/access_sops_keys.py,sha256=nboU5aZ84Elrm5vO0dMgpIF5LLcnecpNAwpxKvj6DvU,2129
|
3
|
-
otter_service_stdalone/app.py,sha256=
|
3
|
+
otter_service_stdalone/app.py,sha256=tPg2CVbzDWDksPkKUWD_ixKjsDp3KPNGbnnwXDYl0a8,16082
|
4
4
|
otter_service_stdalone/fs_logging.py,sha256=IKFZkc5TmpI6G3vTYFAU9jDjQ-GT5aRxk8kdZ0h0kJE,2390
|
5
5
|
otter_service_stdalone/grade_notebooks.py,sha256=x19MK_ResW-xM3mdwEUALsdsCiX4I1OHmODUHodcIow,3817
|
6
6
|
otter_service_stdalone/index.html,sha256=eEbFGxbV-plE5bAggGYHTv1q7yqoTN4kJbzL729uMmk,7276
|
@@ -15,8 +15,8 @@ otter_service_stdalone/secrets/gh_key.staging.yaml,sha256=cKVqj4dcwuz2LhXwMNQy_1
|
|
15
15
|
otter_service_stdalone/static_files/README_DO_NOT_DISTRIBUTE.txt,sha256=eMqBa1du1u0c07fuG3Eu9DDHuixRTFEbiQwrlvAnL1Y,353
|
16
16
|
otter_service_stdalone/static_templates/403.html,sha256=7eO3XQsEkl4nF8PEeFkLwCzGBfdZ3kkkeu_Kgpgbh0k,1440
|
17
17
|
otter_service_stdalone/static_templates/500.html,sha256=t6DeEMp8piSWyBToHb_JpTrw3GStAHFrozlmeuXyamg,1421
|
18
|
-
otter_service_stdalone-1.1.
|
19
|
-
otter_service_stdalone-1.1.
|
20
|
-
otter_service_stdalone-1.1.
|
21
|
-
otter_service_stdalone-1.1.
|
22
|
-
otter_service_stdalone-1.1.
|
18
|
+
otter_service_stdalone-1.1.26.dist-info/METADATA,sha256=Xsuq_QlfZv3rkxO8g6TbvkrUDxOcs_DX2JSeC1lp2L8,1468
|
19
|
+
otter_service_stdalone-1.1.26.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
20
|
+
otter_service_stdalone-1.1.26.dist-info/entry_points.txt,sha256=cx447chuIEl8ly9jEoF5-2xNhaKsWcIMDdhUMH_00qQ,75
|
21
|
+
otter_service_stdalone-1.1.26.dist-info/top_level.txt,sha256=6UP22fD4OhbLt23E01v8Kvjn44vPRbyTIg_GqMYL-Ng,23
|
22
|
+
otter_service_stdalone-1.1.26.dist-info/RECORD,,
|
File without changes
|
{otter_service_stdalone-1.1.25.dist-info → otter_service_stdalone-1.1.26.dist-info}/entry_points.txt
RENAMED
File without changes
|
{otter_service_stdalone-1.1.25.dist-info → otter_service_stdalone-1.1.26.dist-info}/top_level.txt
RENAMED
File without changes
|