Browse Source

fixing issue with intro texts

practices
Simon Bowie 1 year ago
parent
commit
7b458de933
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      web/app/practice.py
  2. +1
    -1
      web/app/tool.py

+ 1
- 1
web/app/practice.py View File

# set resource type # set resource type
resource_type = 'practice' resource_type = 'practice'
# get introductory paragraph Markdown # get introductory paragraph Markdown
with open('content/books.md', 'r') as f:
with open('content/practices.md', 'r') as f:
intro_text = f.read() intro_text = f.read()
intro_text = markdown.markdown(intro_text) intro_text = markdown.markdown(intro_text)



+ 1
- 1
web/app/tool.py View File

# set resource type # set resource type
resource_type = 'tool' resource_type = 'tool'
# get introductory paragraph Markdown # get introductory paragraph Markdown
with open('content/books.md', 'r') as f:
with open('content/tools.md', 'r') as f:
intro_text = f.read() intro_text = f.read()
intro_text = markdown.markdown(intro_text) intro_text = markdown.markdown(intro_text)



Loading…
Cancel
Save