File tree Expand file tree Collapse file tree 5 files changed +9
-9
lines changed Expand file tree Collapse file tree 5 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -265,7 +265,7 @@ def get_issues_by_owner_id(owner, issue):
265265 if val ['body_text' ]:
266266 if "Weekly Goals" in val ['body_text' ] and not w_goal_url :
267267 w_goal_url = val ['body_text' ]
268- plain_text_body = markdown2 .markdown (val ['body_text' ])
268+ plain_text_body = markdown .markdown (val ['body_text' ])
269269
270270 tasks = re .findall (r'\[(x| )\]' , plain_text_body )
271271 total_tasks = len (tasks )
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ python-dotenv==1.0.1
44supabase == 2.4.5
55gunicorn == 22.0.0
66flasgger == 0.9.7.1
7- markdown2 == 2 .4.13
7+ markdown == 3 .4.1
88requests == 2.32.2
99flask-cors == 4.0.1
1010Flask-SQLAlchemy == 3.1.1
Original file line number Diff line number Diff line change 1- import requests ,re ,markdown2 ,os
1+ import requests ,re ,markdown ,os
22from collections import defaultdict
33from datetime import datetime , timedelta
44from dateutil import parser
@@ -115,7 +115,7 @@ def find_week_data(issue_details):
115115
116116 for week in weekly_updates :
117117
118- plain_text_body = markdown2 .markdown (week ['val' ]['body' ])
118+ plain_text_body = markdown .markdown (week ['val' ]['body' ])
119119
120120 tasks = re .findall (r'\[(x| )\]' , plain_text_body )
121121 total_tasks = len (tasks )
@@ -154,7 +154,7 @@ def find_week_avg(url):
154154
155155 if "Weekly Goals" in item ['body' ]:
156156 w_goal_url = item ['body' ]
157- plain_text_body = markdown2 .markdown (issue_details [0 ]['body' ])
157+ plain_text_body = markdown .markdown (issue_details [0 ]['body' ])
158158
159159 tasks = re .findall (r'\[(x| )\]' , plain_text_body )
160160 total_tasks = len (tasks )
Original file line number Diff line number Diff line change 11import traceback ,re
22from flask import Blueprint , jsonify , request
3- import markdown2
3+ import markdown
44from utils import require_secret_key
55from db import SupabaseInterface
66from utils import determine_week
@@ -51,15 +51,15 @@ def get_issues_by_owner_id_v2(owner, issue):
5151 if val ['body_text' ]:
5252 if ("Weekly Goals" in val ['body_text' ] and not w_goal_url ):
5353 w_goal_url = val ['body_text' ]
54- plain_text_body = markdown2 .markdown (val ['body_text' ])
54+ plain_text_body = markdown .markdown (val ['body_text' ])
5555 tasks = re .findall (r'\[(x| )\]' , plain_text_body )
5656 total_tasks = len (tasks )
5757 completed_tasks = tasks .count ('x' )
5858 avg = round ((completed_tasks / total_tasks )* 100 ) if total_tasks != 0 else 0
5959
6060 if ("Weekly Learnings" in val ['body_text' ] and not w_learn_url ):
6161 w_learn_url = val ['body_text' ]
62- plain_text_wurl = markdown2 .markdown (val ['body_text' ])
62+ plain_text_wurl = markdown .markdown (val ['body_text' ])
6363
6464
6565 # mentors = mentors_data['mentors']
Original file line number Diff line number Diff line change 1- import logging ,re ,markdown2
1+ import logging ,re ,markdown
22
33# Func to create name and link for all mentors and contributors
44def define_link_data (usernames ):
You can’t perform that action at this time.
0 commit comments