Skip to content

[Work-in-Progress] Generate weekly report with new submissions(#427)#434

Open
Deep-Chill wants to merge 3 commits into
djaodjin:mainfrom
Deep-Chill:issue-427
Open

[Work-in-Progress] Generate weekly report with new submissions(#427)#434
Deep-Chill wants to merge 3 commits into
djaodjin:mainfrom
Deep-Chill:issue-427

Conversation

@Deep-Chill
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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 ...

Comment thread djaopsp/queries.py
return segments_query

def get_portfolios_frozen_assessments(grantee=None,
def get_portfolios_frozen_assessments(grantees=None,
Copy link
Copy Markdown
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