From 4ce9ea68b5c105d943dad9680569b82b04a93ea6 Mon Sep 17 00:00:00 2001 From: jaanbaaz Date: Wed, 7 Aug 2024 15:34:41 +0530 Subject: [PATCH] markdown2 not found issue fix --- app.py | 2 +- v2_app.py | 3 +-- v2_utils.py | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/app.py b/app.py index 54565fc..07b82bf 100644 --- a/app.py +++ b/app.py @@ -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) diff --git a/v2_app.py b/v2_app.py index 1cf98f0..6d0d3c0 100644 --- a/v2_app.py +++ b/v2_app.py @@ -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 @@ -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'] diff --git a/v2_utils.py b/v2_utils.py index 5a34a64..fa73eaf 100644 --- a/v2_utils.py +++ b/v2_utils.py @@ -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):