Skip to content
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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Deep-Chill
Copy link
Contributor

  • 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.
Copy link
Contributor

@smirolo smirolo left a 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='+',
Copy link
Contributor

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,
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants