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 CHANGED
@@ -1,3 +1,3 @@
1
1
  """kattis2canvas - CLI tool to integrate Kattis offerings with Canvas LMS courses."""
2
2
 
3
- __version__ = "0.1.1"
3
+ __version__ = "0.1.2"
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(f"would create assignment group {kattis_group}.")
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
- canvas_assignments = {a.name: a for a in course.get_assignments(assignment_group_id=kattis_group.id)}
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]))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: kattis2canvas
3
- Version: 0.1.1
3
+ Version: 0.1.2
4
4
  Summary: CLI tool to integrate Kattis offerings with Canvas LMS courses
5
5
  Author: bcr33d
6
6
  License-Expression: MIT
@@ -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,,