Skip to content

Commit 0110629

Browse files
committed
markdown2 not found issue fix
1 parent 36adc24 commit 0110629

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

utils.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import requests,re,markdown2,os
1+
import requests,re,markdown,os
22
from collections import defaultdict
33
from datetime import datetime, timedelta
44
from 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)

0 commit comments

Comments
 (0)