-
Notifications
You must be signed in to change notification settings - Fork 5
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
[Work-in-Progress] Generate weekly report with new submissions(#427) #434
base: main
Are you sure you want to change the base?
Conversation
Deep-Chill
commented
Jan 16, 2024
- Created command to list suppliers that have completed a specific survey during a specified period for a campaign.
…in#427) - Created command to list suppliers that have completed a specific survey during a specified period for a campaign.
- Preliminary version of updated logic in the completed_assessments command to allow specifying a grantee.
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.
just commenting for reference. code looks good.
action='store', | ||
help='Slug of grantee') | ||
parser.add_argument('--grantees', | ||
nargs='+', |
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.
That's interesting. As a convention so far we had used repetition of the command line parameter, i.e. python manage.py command --grantee grantee1 --grantee grantee2 ...
. Here it seems the convention is python manage.py command --grantees grantee1,grantee2 ...
@@ -889,16 +889,19 @@ def segments_as_sql(segments): | |||
} | |||
return segments_query | |||
|
|||
def get_portfolios_frozen_assessments(grantee=None, | |||
def get_portfolios_frozen_assessments(grantees=None, |
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.
This implementation looks like a specific version of the implementation in PortfolioAccessibleSamplesMixin.get_latest_frozen_by_accounts_by_period
.