prologin / concours-site

Source code of the Prologin contest website
https://gitlab.com/prologin/concours/site
GNU General Public License v3.0
10 stars 6 forks source link

Only display a sponsor's logo if it exists in /sponsors #362

Closed laggron42 closed 2 years ago

laggron42 commented 2 years ago

Simple condition to check if a sponsor has a logo before trying to display it, preventing a crash on /sponsors.

Resolves #352

codecov[bot] commented 2 years ago

Codecov Report

Merging #362 (45fc897) into master (44cb236) will decrease coverage by 0.02%. The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #362      +/-   ##
==========================================
- Coverage   51.53%   51.51%   -0.03%     
==========================================
  Files         202      202              
  Lines        9652     9658       +6     
==========================================
+ Hits         4974     4975       +1     
- Misses       4678     4683       +5     
Impacted Files Coverage Δ
prologin/archives/thirdparty/vimeo.py 37.14% <0.00%> (-1.10%) :arrow_down:
prologin/prologin/utils/scoring.py 20.40% <0.00%> (-0.43%) :arrow_down:
prologin/prologin/management/commands/edition.py 0.00% <0.00%> (ø)
...rologin/management/commands/migrate_from_drupal.py 0.00% <0.00%> (ø)
...mifinal/management/commands/semifinal_bootstrap.py 0.00% <0.00%> (ø)
prologin/contest/widgets.py 52.50% <0.00%> (+1.21%) :arrow_up:

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 44cb236...45fc897. Read the comment docs.