kattis2canvas 0.1.4__py3-none-any.whl → 0.1.5__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/cli.py CHANGED
@@ -614,7 +614,7 @@ def course2canvas(offering, canvas_course, dryrun, force, add_to_module, assignm
614
614
  assignment_data = {
615
615
  'assignment_group_id': canvas_group.id,
616
616
  'name': assignment.title,
617
- 'description': f'Solve the problems found at <a href="{assignment.url}">{assignment.url}</a>. {description}',
617
+ 'description': f'Solve the problems found at <a href="{assignment.url}" target="kattis-details">{assignment.url}</a>. {description}',
618
618
  'points_possible': 100,
619
619
  'published': True,
620
620
  }
@@ -814,8 +814,9 @@ def submissions2canvas(offering, canvas_course, dryrun, assignment_group, sectio
814
814
  warn(
815
815
  f"would update {kattis_user2canvas_id[kattis_submission.user]} on problem {kattis_submission.problem} scored {kattis_submission.score}")
816
816
  else:
817
+ href_url = f"https://{config.kattis_hostname}{kattis_submission.url}"
817
818
  submissions_by_user[user].edit(comment={
818
- 'text_comment': f"{prefix}Submission https://{config.kattis_hostname}{kattis_submission.url} scored {kattis_submission.score} on {kattis_submission.problem}."})
819
+ 'text_comment': f"{prefix}Submission <a href={href_url}>{href_url}</a> scored {kattis_submission.score} on {kattis_submission.problem}."})
819
820
  info(
820
821
  f"updated {submissions_by_user[user]} {kattis_user2canvas_id[kattis_submission.user]} for {assignment.title}")
821
822
  else:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: kattis2canvas
3
- Version: 0.1.4
3
+ Version: 0.1.5
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=iZxFVdxd7EFidzpHII8RrgHeMtVwrwESqgy4HZKBxPo,109
2
+ kattis2canvas/__main__.py,sha256=GGdT4J5WJQ5MvnJ7m-VX_noR8DGaYXclhjDUIFjW5SY,120
3
+ kattis2canvas/cli.py,sha256=na1B3nm-srGv9XrOqLxuSfOwniY7aCMcdlC-3GJzbb8,34700
4
+ kattis2canvas-0.1.5.dist-info/METADATA,sha256=utaXu8ATS7u21AuFaQ6CRGQRLgAbX13c_rVCPaONmQo,7081
5
+ kattis2canvas-0.1.5.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
6
+ kattis2canvas-0.1.5.dist-info/entry_points.txt,sha256=V7GPrZNe7aIcu6f_dNo_pCjkuqBQxRzKAQZCNxl9DYg,56
7
+ kattis2canvas-0.1.5.dist-info/top_level.txt,sha256=ZoThmon7y1CR0sTAZndaF2rloBK8xz10mGyz5PUbtCo,14
8
+ kattis2canvas-0.1.5.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.10.1)
2
+ Generator: setuptools (80.10.2)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,8 +0,0 @@
1
- kattis2canvas/__init__.py,sha256=iZxFVdxd7EFidzpHII8RrgHeMtVwrwESqgy4HZKBxPo,109
2
- kattis2canvas/__main__.py,sha256=GGdT4J5WJQ5MvnJ7m-VX_noR8DGaYXclhjDUIFjW5SY,120
3
- kattis2canvas/cli.py,sha256=SN_Yyh6M5NRB7XHii1zLlrfFfNz7zIjh4ssR0rQI680,34600
4
- kattis2canvas-0.1.4.dist-info/METADATA,sha256=UPhRSxzdaHrPl1JSjMIO2P24vKkw-dvVYXjA8wHGaB0,7081
5
- kattis2canvas-0.1.4.dist-info/WHEEL,sha256=qELbo2s1Yzl39ZmrAibXA2jjPLUYfnVhUNTlyF1rq0Y,92
6
- kattis2canvas-0.1.4.dist-info/entry_points.txt,sha256=V7GPrZNe7aIcu6f_dNo_pCjkuqBQxRzKAQZCNxl9DYg,56
7
- kattis2canvas-0.1.4.dist-info/top_level.txt,sha256=ZoThmon7y1CR0sTAZndaF2rloBK8xz10mGyz5PUbtCo,14
8
- kattis2canvas-0.1.4.dist-info/RECORD,,