Skip to content

Commit

Permalink
Merge pull request #49 from Code4GovTech/fix/markdown2
Browse files Browse the repository at this point in the history
markdown2 not found issue fix
  • Loading branch information
karntrehan authored Aug 7, 2024
2 parents e5e575a + 4ce9ea6 commit e711754
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ def get_issues_by_owner_id(owner, issue):
if val['body_text']:
if "Weekly Goals" in val['body_text'] and not w_goal_url:
w_goal_url = val['body_text']
plain_text_body = markdown2.markdown(val['body_text'])
plain_text_body = markdown.markdown(val['body_text'])

tasks = re.findall(r'\[(x| )\]', plain_text_body)
total_tasks = len(tasks)
Expand Down
3 changes: 1 addition & 2 deletions v2_app.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import traceback,re
from flask import Blueprint, jsonify, request
import markdown2
import markdown
from utils import require_secret_key
from db import SupabaseInterface
Expand Down Expand Up @@ -60,7 +59,7 @@ def get_issues_by_owner_id_v2(owner, issue):

if ("Weekly Learnings" in val['body_text'] and not w_learn_url):
w_learn_url = val['body_text']
plain_text_wurl = markdown2.markdown(val['body_text'])
plain_text_wurl = markdown.markdown(val['body_text'])


# mentors = mentors_data['mentors']
Expand Down
2 changes: 1 addition & 1 deletion v2_utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import logging,re,markdown2
import logging,re,markdown

# Func to create name and link for all mentors and contributors
def define_link_data(usernames):
Expand Down

0 comments on commit e711754

Please sign in to comment.