Skip to content

Commit 1383a49

Browse files
authored
Merge pull request #25 from Code4GovTech/sasi_dev_v2fix
org name issue fix
2 parents 6f597e4 + ae79633 commit 1383a49

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

v2_app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def get_issues_by_owner_id_v2(owner, issue):
4747
# mentors_data = find_mentors(val['issue_url']) if val['issue_url'] else {'mentors': [], 'mentor_usernames': []}
4848

4949
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):
50+
if ("Weekly Goals" in val['body_text'] and not w_goal_url):
5151
w_goal_url = val['body_text']
5252
plain_text_body = markdown2.markdown(val['body_text'])
5353
tasks = re.findall(r'\[(x| )\]', plain_text_body)
@@ -72,7 +72,7 @@ def get_issues_by_owner_id_v2(owner, issue):
7272
"mentor_id": dmp_issue_id['mentor_username'] ,
7373
"contributor":define_link_data(cont_details),
7474
# "contributor_id": cont_details[0]['contributor_id'],
75-
"org": define_link_data(repo_owner),
75+
"org": define_link_data(repo_owner)[0] if repo_owner else None,
7676
"weekly_goals_html": w_goal_url,
7777
"weekly_learnings_html": w_learn_url,
7878
"overall_progress":calculate_overall_progress(week_data,12),

0 commit comments

Comments
 (0)