Skip to content

Conversation

@magula
Copy link
Contributor

@magula magula commented Mar 27, 2020

PrintingService currently doesn't work. When someone uses it to print something, the compilation of (or rather the rendering of the template of) the title page will fail. As far as I can tell, the reason for this comes from the transition from Tornado to Jinja2:

Jinja2 templates render to strings (unlike the previously used Tornado templates, which render to bytes). So we shouldn't open the output file in binary mode.


This change is Reviewable

This was failing because Jinja2 templates render to strings (unlike the previously used Tornado templates, which render to bytes)
@codecov
Copy link

codecov bot commented Mar 27, 2020

Codecov Report

Merging #1150 into master will not change coverage by %.
The diff coverage is 0.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1150   +/-   ##
=======================================
  Coverage   61.99%   61.99%           
=======================================
  Files         230      230           
  Lines       16604    16604           
=======================================
  Hits        10294    10294           
  Misses       6310     6310           
Flag Coverage Δ
#functionaltests 45.48% <0.00%> (-0.12%) ⬇️
#unittests 43.29% <0.00%> (+<0.01%) ⬆️
Impacted Files Coverage Δ
cms/service/PrintingService.py 0.00% <0.00%> (ø)
cms/server/contest/handlers/taskusertest.py 41.21% <0.00%> (-2.43%) ⬇️
cms/service/EvaluationService.py 66.22% <0.00%> (-1.33%) ⬇️
cms/db/base.py 82.97% <0.00%> (-1.07%) ⬇️
cms/db/filecacher.py 76.72% <0.00%> (-0.33%) ⬇️
cms/io/service.py 69.51% <0.00%> (ø)
cms/server/contest/handlers/contest.py 87.00% <0.00%> (ø)
cms/service/workerpool.py 62.22% <0.00%> (+0.55%) ⬆️
cms/io/rpc.py 91.80% <0.00%> (+0.68%) ⬆️
cms/service/esoperations.py 79.43% <0.00%> (+0.70%) ⬆️
... and 4 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d4c9e92...503f477. Read the comment docs.

@andreyv
Copy link
Member

andreyv commented Nov 22, 2020

Thanks, the description and the fix are good.

@andreyv andreyv merged commit fe95aee into cms-dev:master Nov 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants