Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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