File tree 5 files changed +9
-9
lines changed
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):
265
265
if val ['body_text' ]:
266
266
if "Weekly Goals" in val ['body_text' ] and not w_goal_url :
267
267
w_goal_url = val ['body_text' ]
268
- plain_text_body = markdown2 .markdown (val ['body_text' ])
268
+ plain_text_body = markdown .markdown (val ['body_text' ])
269
269
270
270
tasks = re .findall (r'\[(x| )\]' , plain_text_body )
271
271
total_tasks = len (tasks )
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ python-dotenv==1.0.1
4
4
supabase == 2.4.5
5
5
gunicorn == 22.0.0
6
6
flasgger == 0.9.7.1
7
- markdown2 == 2 .4.13
7
+ markdown == 3 .4.1
8
8
requests == 2.32.2
9
9
flask-cors == 4.0.1
10
10
Flask-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
2
2
from collections import defaultdict
3
3
from datetime import datetime , timedelta
4
4
from dateutil import parser
@@ -115,7 +115,7 @@ def find_week_data(issue_details):
115
115
116
116
for week in weekly_updates :
117
117
118
- plain_text_body = markdown2 .markdown (week ['val' ]['body' ])
118
+ plain_text_body = markdown .markdown (week ['val' ]['body' ])
119
119
120
120
tasks = re .findall (r'\[(x| )\]' , plain_text_body )
121
121
total_tasks = len (tasks )
@@ -154,7 +154,7 @@ def find_week_avg(url):
154
154
155
155
if "Weekly Goals" in item ['body' ]:
156
156
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' ])
158
158
159
159
tasks = re .findall (r'\[(x| )\]' , plain_text_body )
160
160
total_tasks = len (tasks )
Original file line number Diff line number Diff line change 1
1
import traceback ,re
2
2
from flask import Blueprint , jsonify , request
3
- import markdown2
3
+ import markdown
4
4
from utils import require_secret_key
5
5
from db import SupabaseInterface
6
6
from utils import determine_week
@@ -51,15 +51,15 @@ def get_issues_by_owner_id_v2(owner, issue):
51
51
if val ['body_text' ]:
52
52
if ("Weekly Goals" in val ['body_text' ] and not w_goal_url ):
53
53
w_goal_url = val ['body_text' ]
54
- plain_text_body = markdown2 .markdown (val ['body_text' ])
54
+ plain_text_body = markdown .markdown (val ['body_text' ])
55
55
tasks = re .findall (r'\[(x| )\]' , plain_text_body )
56
56
total_tasks = len (tasks )
57
57
completed_tasks = tasks .count ('x' )
58
58
avg = round ((completed_tasks / total_tasks )* 100 ) if total_tasks != 0 else 0
59
59
60
60
if ("Weekly Learnings" in val ['body_text' ] and not w_learn_url ):
61
61
w_learn_url = val ['body_text' ]
62
- plain_text_wurl = markdown2 .markdown (val ['body_text' ])
62
+ plain_text_wurl = markdown .markdown (val ['body_text' ])
63
63
64
64
65
65
# mentors = mentors_data['mentors']
Original file line number Diff line number Diff line change 1
- import logging ,re ,markdown2
1
+ import logging ,re ,markdown
2
2
3
3
# Func to create name and link for all mentors and contributors
4
4
def define_link_data (usernames ):
You can’t perform that action at this time.
0 commit comments