equal
deleted
inserted
replaced
16 |
16 |
17 """Views for Tasks. |
17 """Views for Tasks. |
18 """ |
18 """ |
19 |
19 |
20 __authors__ = [ |
20 __authors__ = [ |
21 '"Madhusudan.C.S" <madhusudancs@gmail.com>' |
21 '"Madhusudan.C.S" <madhusudancs@gmail.com>', |
|
22 '"Lennard de Rijk" <ljvderijk@gmail.com>', |
22 ] |
23 ] |
23 |
24 |
24 |
25 |
25 import datetime |
26 import datetime |
26 import time |
27 import time |
729 filter = { |
730 filter = { |
730 'scope': org_entity, |
731 'scope': org_entity, |
731 'status': ['Unapproved', 'Unpublished'], |
732 'status': ['Unapproved', 'Unpublished'], |
732 } |
733 } |
733 |
734 |
734 up_list = lists.getListContent(request, up_params, filter, |
735 up_list = lists.getListContent(request, up_params, filter, idx=0, |
735 order=order, idx=0, |
|
736 need_content=True) |
736 need_content=True) |
737 |
737 |
738 if up_list: |
738 if up_list: |
739 up_mentors_list = {} |
739 up_mentors_list = {} |
740 for task_entity in up_list['data']: |
740 for task_entity in up_list['data']: |
761 'status': ['Open', 'Reopened', 'ClaimRequested', 'Claimed', |
761 'status': ['Open', 'Reopened', 'ClaimRequested', 'Claimed', |
762 'ActionNeeded', 'Closed', 'AwaitingRegistration', |
762 'ActionNeeded', 'Closed', 'AwaitingRegistration', |
763 'NeedsWork', 'NeedsReview'], |
763 'NeedsWork', 'NeedsReview'], |
764 } |
764 } |
765 |
765 |
766 ap_list = lists.getListContent(request, ap_params, filter, |
766 ap_list = lists.getListContent(request, ap_params, filter, idx=1, |
767 order=order, idx=1, |
|
768 need_content=True) |
767 need_content=True) |
769 |
768 |
770 if ap_list: |
769 if ap_list: |
771 ap_mentors_list = {} |
770 ap_mentors_list = {} |
772 for task_entity in ap_list['data']: |
771 for task_entity in ap_list['data']: |