kattis2canvas 0.1.1__py3-none-any.whl → 0.1.2__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.
- kattis2canvas/__init__.py +1 -1
- kattis2canvas/cli.py +6 -2
- {kattis2canvas-0.1.1.dist-info → kattis2canvas-0.1.2.dist-info}/METADATA +1 -1
- kattis2canvas-0.1.2.dist-info/RECORD +8 -0
- kattis2canvas-0.1.1.dist-info/RECORD +0 -8
- {kattis2canvas-0.1.1.dist-info → kattis2canvas-0.1.2.dist-info}/WHEEL +0 -0
- {kattis2canvas-0.1.1.dist-info → kattis2canvas-0.1.2.dist-info}/entry_points.txt +0 -0
- {kattis2canvas-0.1.1.dist-info → kattis2canvas-0.1.2.dist-info}/top_level.txt +0 -0
kattis2canvas/__init__.py
CHANGED
kattis2canvas/cli.py
CHANGED
|
@@ -329,7 +329,7 @@ def course2canvas(offering, canvas_course, dryrun, force, add_to_module):
|
|
|
329
329
|
if not kattis_group:
|
|
330
330
|
# create assignment group if not present on canvas
|
|
331
331
|
if dryrun:
|
|
332
|
-
info(
|
|
332
|
+
info("would create assignment group 'kattis'.")
|
|
333
333
|
else:
|
|
334
334
|
kattis_group = course.create_assignment_group(name='kattis')
|
|
335
335
|
info(f"created assignment group {kattis_group}.")
|
|
@@ -350,7 +350,11 @@ def course2canvas(offering, canvas_course, dryrun, force, add_to_module):
|
|
|
350
350
|
add_to_module.edit(module=args)
|
|
351
351
|
info(f"published module {add_to_module}.")
|
|
352
352
|
|
|
353
|
-
|
|
353
|
+
# In dryrun mode without existing kattis group, get all assignments; otherwise filter by group
|
|
354
|
+
if kattis_group:
|
|
355
|
+
canvas_assignments = {a.name: a for a in course.get_assignments(assignment_group_id=kattis_group.id)}
|
|
356
|
+
else:
|
|
357
|
+
canvas_assignments = {}
|
|
354
358
|
|
|
355
359
|
# make sure assignments are in place
|
|
356
360
|
sorted_assignments = list(get_assignments(offerings[0]))
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
kattis2canvas/__init__.py,sha256=eQhFufU8FowVsAgP6GPL4jY3u_OYsDabZPIN-qefj4k,109
|
|
2
|
+
kattis2canvas/__main__.py,sha256=GGdT4J5WJQ5MvnJ7m-VX_noR8DGaYXclhjDUIFjW5SY,120
|
|
3
|
+
kattis2canvas/cli.py,sha256=Ch0Mr-p6_-H0108k5T_FdvsuGsKvh7BERH3EjxEcpDk,23984
|
|
4
|
+
kattis2canvas-0.1.2.dist-info/METADATA,sha256=8D5iPAMRI6bCvUnwidUQphTfUPUf3VwFSV28_1SWpvU,7081
|
|
5
|
+
kattis2canvas-0.1.2.dist-info/WHEEL,sha256=qELbo2s1Yzl39ZmrAibXA2jjPLUYfnVhUNTlyF1rq0Y,92
|
|
6
|
+
kattis2canvas-0.1.2.dist-info/entry_points.txt,sha256=V7GPrZNe7aIcu6f_dNo_pCjkuqBQxRzKAQZCNxl9DYg,56
|
|
7
|
+
kattis2canvas-0.1.2.dist-info/top_level.txt,sha256=ZoThmon7y1CR0sTAZndaF2rloBK8xz10mGyz5PUbtCo,14
|
|
8
|
+
kattis2canvas-0.1.2.dist-info/RECORD,,
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
kattis2canvas/__init__.py,sha256=YHEMoJHVGxUquVQlxRXMuxH6dXsyXfAsAyF47okk8IA,109
|
|
2
|
-
kattis2canvas/__main__.py,sha256=GGdT4J5WJQ5MvnJ7m-VX_noR8DGaYXclhjDUIFjW5SY,120
|
|
3
|
-
kattis2canvas/cli.py,sha256=gkKqVVkM0f5aGl-9giLLAGhBJYAcgLDvCXmPq4rEMtY,23825
|
|
4
|
-
kattis2canvas-0.1.1.dist-info/METADATA,sha256=LE_S_E7mkpoz6mq5DGrWuxsr6fEbYcCvc2jzwV-d7S4,7081
|
|
5
|
-
kattis2canvas-0.1.1.dist-info/WHEEL,sha256=qELbo2s1Yzl39ZmrAibXA2jjPLUYfnVhUNTlyF1rq0Y,92
|
|
6
|
-
kattis2canvas-0.1.1.dist-info/entry_points.txt,sha256=V7GPrZNe7aIcu6f_dNo_pCjkuqBQxRzKAQZCNxl9DYg,56
|
|
7
|
-
kattis2canvas-0.1.1.dist-info/top_level.txt,sha256=ZoThmon7y1CR0sTAZndaF2rloBK8xz10mGyz5PUbtCo,14
|
|
8
|
-
kattis2canvas-0.1.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|