Skip to content

Commit

Permalink
Merge pull request #48 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 8ce307e + 0110629 commit e5e575a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import requests,re,markdown2,os
import requests,re,markdown,os
from collections import defaultdict
from datetime import datetime, timedelta
from dateutil import parser
Expand Down Expand Up @@ -115,7 +115,7 @@ def find_week_data(issue_details):

for week in weekly_updates:

plain_text_body = markdown2.markdown(week['val']['body'])
plain_text_body = markdown.markdown(week['val']['body'])

tasks = re.findall(r'\[(x| )\]', plain_text_body)
total_tasks = len(tasks)
Expand Down Expand Up @@ -154,7 +154,7 @@ def find_week_avg(url):

if "Weekly Goals" in item['body']:
w_goal_url = item['body']
plain_text_body = markdown2.markdown(issue_details[0]['body'])
plain_text_body = markdown.markdown(issue_details[0]['body'])

tasks = re.findall(r'\[(x| )\]', plain_text_body)
total_tasks = len(tasks)
Expand Down

0 comments on commit e5e575a

Please sign in to comment.