Conditions | 2 |
Total Lines | 10 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 1 |
CRAP Score | 2 |
Changes | 0 |
1 | 1 | import random |
|
29 | def _load_readme(): |
||
30 | 1 | path = Path(current_app.config['ROOT'], 'README.md') |
|
31 | with path.open() as f: |
||
32 | text = f.read() |
||
33 | content = text.split('<!--content-->')[-1] |
||
34 | html = markdown(content, extensions=[ |
||
35 | 'markdown.extensions.tables', |
||
36 | 'pymdownx.magiclink', |
||
37 | ]) |
||
38 | return Markup(html) |
||
39 |