Skip to content

Commit 948b60b

Browse files
authored
Merge pull request #20 from Code4GovTech/sasi_dev_v2
condition removed in find week datas
2 parents 67df7df + 5a2fab0 commit 948b60b

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

v2_app.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,16 @@ def get_issues_by_owner_id_v2(owner, issue):
3939
# mentors_data = find_mentors(val['issue_url']) if val['issue_url'] else {'mentors': [], 'mentor_usernames': []}
4040

4141
if val['body_text']:
42-
if ("Weekly Goals" in val['body_text'] and not w_goal_url) and ("@"+val['created_by'].lower() == dmp_issue_id['mentor_username'].lower()):
42+
# and ("@"+val['created_by'].lower() == dmp_issue_id['mentor_username'].lower())
43+
if ("Weekly Goals" in val['body_text'] and not w_goal_url):
4344
w_goal_url = val['body_text']
4445
plain_text_body = markdown2.markdown(val['body_text'])
4546
tasks = re.findall(r'\[(x| )\]', plain_text_body)
4647
total_tasks = len(tasks)
4748
completed_tasks = tasks.count('x')
4849
avg = round((completed_tasks/total_tasks)*100) if total_tasks!=0 else 0
4950

50-
if ("Weekly Learnings" in val['body_text'] and not w_learn_url) and ((val['created_by'] == dmp_issue_id['contributor_username'])):
51+
if ("Weekly Learnings" in val['body_text'] and not w_learn_url):
5152
w_learn_url = val['body_text']
5253
plain_text_wurl = markdown2.markdown(val['body_text'])
5354

0 commit comments

Comments
 (0)