Skip to content

Commit 6687de8

Browse files
committed
weekly goals from mentors
1 parent 33e204c commit 6687de8

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

v2_app.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,8 @@ def get_issues_by_owner_id_v2(owner, issue):
4646
# week_avg ,cont_name,cont_id,w_goal,w_learn,weekby_avgs,org_link = find_week_avg(issue_url)
4747
# mentors_data = find_mentors(val['issue_url']) if val['issue_url'] else {'mentors': [], 'mentor_usernames': []}
4848

49-
if val['body_text']:
50-
# and ("@"+val['created_by'].lower() == dmp_issue_id['mentor_username'].lower())
51-
if ("Weekly Goals" in val['body_text'] and not w_goal_url):
49+
if val['body_text']:
50+
if ("Weekly Goals" in val['body_text'] and not w_goal_url) and ("@"+val['created_by'].lower() == dmp_issue_id['mentor_username'].lower() if dmp_issue_id['mentor_username'] else None):
5251
w_goal_url = val['body_text']
5352
plain_text_body = markdown2.markdown(val['body_text'])
5453
tasks = re.findall(r'\[(x| )\]', plain_text_body)

0 commit comments

Comments
 (0)