-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP: Regolith Grant Report Builder #523
base: main
Are you sure you want to change the base?
Changes from 1 commit
85feb2b
78d735d
b9700cc
d549f98
65e7261
83e178c
8e20314
db0168d
d2410ba
bc72627
0490554
6546f6e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,14 +54,21 @@ def latex(self): | |
begin_year, begin_month, begin_day = int(today[0])-1, int(today[1]), int(today[2]) | ||
end_date = date(end_year, end_month, end_day) | ||
begin_date = date(begin_year, begin_month, begin_day) | ||
|
||
# Get All Active Members | ||
people = [] | ||
for p in self.gtx["people"]: | ||
if p["active"]: | ||
people.append(p) | ||
|
||
# Major Goals | ||
|
||
# Accomplishments | ||
|
||
# Opportunities for Training and Professional Development | ||
valid_presentations = [] | ||
for p in self.gtx["people"]: | ||
if p["active"] and p["_id"] is not "sbillinge": | ||
for p in people: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. for person in people |
||
if p["_id"] is not "sbillinge": | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. my name shouldn't be hard-coded in here |
||
valid_presentations.append(filter_presentations( | ||
self.gtx["people"], self.gtx["presentations"], self.gtx["institutions"], p["_id"], | ||
["tutorial", "contributed_oral"], begin_date, end_date)) | ||
|
@@ -70,6 +77,12 @@ def latex(self): | |
|
||
# Plans for Next Reporting Period to Accomplish Goals | ||
|
||
# Individuals that have worked on project | ||
individuals_data = [] | ||
for p in people: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. you keep looping over people so why not put each of these actions inside a single outer loop over people? |
||
individuals_data.append([p["_id"], p["position"]]) | ||
|
||
|
||
self.render( | ||
"grantreport.txt", | ||
"billinge_grant_report.txt", | ||
|
@@ -79,5 +92,6 @@ def latex(self): | |
beginYear=begin_year, | ||
beginMonth=begin_month, | ||
beginDay=begin_day, | ||
presentations=valid_presentations | ||
presentations=valid_presentations, | ||
individuals=individuals_data | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
current_members = [person for person in self.gtx['people'] if person['active']]