otter-service-stdalone 0.1.27__py3-none-any.whl → 0.1.28__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.
@@ -1 +1 @@
1
- __version__ = "0.1.27"
1
+ __version__ = "0.1.28"
@@ -198,7 +198,11 @@ class Upload(BaseHandler):
198
198
  if autograder is not None and notebooks is not None:
199
199
  notebooks_fname = notebooks['filename']
200
200
  notebooks_extn = os.path.splitext(notebooks_fname)[1]
201
- notebooks_name = results_path + notebooks_extn
201
+ if notebooks_extn == ".zip":
202
+ notebooks_name = results_path + notebooks_extn
203
+ else:
204
+ notebooks_name = f"{results_path}/{notebooks_fname}"
205
+ os.mkdir(f"{__UPLOADS__}/{results_path}")
202
206
  autograder_fname = autograder['filename']
203
207
  autograder_extn = os.path.splitext(autograder_fname)[1]
204
208
  autograder_name = str(uuid.uuid4()) + autograder_extn
@@ -13,10 +13,7 @@ def handle_one_notebook(path):
13
13
  Returns:
14
14
  str: the notebook path
15
15
  """
16
- notebook_name = path.split(".")[0]
17
- os.mkdir(notebook_name)
18
- shutil.move(path, notebook_name)
19
- return notebook_name
16
+ return os.path.dirname(path)
20
17
 
21
18
 
22
19
  def one_notebook(path):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: otter_service_stdalone
3
- Version: 0.1.27
3
+ Version: 0.1.28
4
4
  Summary: Grading Service for Instructors using Otter Grader
5
5
  Home-page: https://github.com/sean-morris/otter-service-stdalone
6
6
  Author: Sean Morris
@@ -1,10 +1,10 @@
1
- otter_service_stdalone/__init__.py,sha256=vEF032D64gj-9WJp4kp0yS1eFIq4XHIqJr91sJJNwWg,23
1
+ otter_service_stdalone/__init__.py,sha256=MWZDdAHrdUZS0c3VlLqX4O1eaxPodI7irMtEvknKQ94,23
2
2
  otter_service_stdalone/access_sops_keys.py,sha256=nboU5aZ84Elrm5vO0dMgpIF5LLcnecpNAwpxKvj6DvU,2129
3
- otter_service_stdalone/app.py,sha256=G0bcNomqZO0aWuQUhvEw8L74XfZGi59-acYYVTs9PfI,10356
3
+ otter_service_stdalone/app.py,sha256=QaIV3_YfGyFVHv1RQLWzsbNe-msX0siYz2R2uKWlwis,10546
4
4
  otter_service_stdalone/fs_logging.py,sha256=IKFZkc5TmpI6G3vTYFAU9jDjQ-GT5aRxk8kdZ0h0kJE,2390
5
5
  otter_service_stdalone/grade_notebooks.py,sha256=JfmistnXtxUz6KTuieDRCoQzZxLYkUiRarQ_hR5CDpU,4561
6
6
  otter_service_stdalone/index.html,sha256=QbSQs31OZhWlCQFE5vvJOlNh-JHEJ3PZPgR4GukzrCA,6032
7
- otter_service_stdalone/upload_handle.py,sha256=NB6isuLrLkUCPetUA3ugUlKKpAYw4nvDBVmxpzvgcE8,5157
7
+ otter_service_stdalone/upload_handle.py,sha256=PbpQEyUIPKercJ9hegKwvxHBvSc9uylhIfwjvHybjs0,5061
8
8
  otter_service_stdalone/user_auth.py,sha256=L9Kfj1BsQttAteHhRn71IUY8WX9nvBy3MXVGq1yjTtE,4253
9
9
  otter_service_stdalone/secrets/gh_key.dev.yaml,sha256=ORUVDu8SDcv0OE2ThwROppeg7y8oLkJJbPTCMn0s5l0,1138
10
10
  otter_service_stdalone/secrets/gh_key.local.yaml,sha256=NtPXXyGf1iSgJ9Oa2ahvIEf_fcmflB3dwd3LWyCgxis,1138
@@ -12,8 +12,8 @@ otter_service_stdalone/secrets/gh_key.prod.yaml,sha256=6vgLqHzDp8cVAOJlpSXGDTUjS
12
12
  otter_service_stdalone/secrets/gh_key.staging.yaml,sha256=cKVqj4dcwuz2LhXwMNQy_1skF8XCVQOX2diXNjAFJXg,1138
13
13
  otter_service_stdalone/static_templates/403.html,sha256=7eO3XQsEkl4nF8PEeFkLwCzGBfdZ3kkkeu_Kgpgbh0k,1440
14
14
  otter_service_stdalone/static_templates/500.html,sha256=t6DeEMp8piSWyBToHb_JpTrw3GStAHFrozlmeuXyamg,1421
15
- otter_service_stdalone-0.1.27.dist-info/METADATA,sha256=-6sPiws_a2gyF0NgnQvcvQnZA8_dNhgqNkC4U7MhXoc,1468
16
- otter_service_stdalone-0.1.27.dist-info/WHEEL,sha256=y4mX-SOX4fYIkonsAGA5N0Oy-8_gI4FXw5HNI1xqvWg,91
17
- otter_service_stdalone-0.1.27.dist-info/entry_points.txt,sha256=cx447chuIEl8ly9jEoF5-2xNhaKsWcIMDdhUMH_00qQ,75
18
- otter_service_stdalone-0.1.27.dist-info/top_level.txt,sha256=6UP22fD4OhbLt23E01v8Kvjn44vPRbyTIg_GqMYL-Ng,23
19
- otter_service_stdalone-0.1.27.dist-info/RECORD,,
15
+ otter_service_stdalone-0.1.28.dist-info/METADATA,sha256=wnllebjq91fz1Lb067pwOaym_KG_CN4MA7C7RGd73a8,1468
16
+ otter_service_stdalone-0.1.28.dist-info/WHEEL,sha256=Z4pYXqR_rTB7OWNDYFOm1qRk0RX6GFP2o8LgvP453Hk,91
17
+ otter_service_stdalone-0.1.28.dist-info/entry_points.txt,sha256=cx447chuIEl8ly9jEoF5-2xNhaKsWcIMDdhUMH_00qQ,75
18
+ otter_service_stdalone-0.1.28.dist-info/top_level.txt,sha256=6UP22fD4OhbLt23E01v8Kvjn44vPRbyTIg_GqMYL-Ng,23
19
+ otter_service_stdalone-0.1.28.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (70.2.0)
2
+ Generator: setuptools (70.3.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5