Skip to content

Commit

Permalink
Merge pull request #25 from Code4GovTech/sasi_dev_v2fix
Browse files Browse the repository at this point in the history
org name issue fix
  • Loading branch information
sasi2312 authored Jun 27, 2024
2 parents 6f597e4 + ae79633 commit 1383a49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions v2_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def get_issues_by_owner_id_v2(owner, issue):
# mentors_data = find_mentors(val['issue_url']) if val['issue_url'] else {'mentors': [], 'mentor_usernames': []}

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

0 comments on commit 1383a49

Please sign in to comment.