Skip to content

Commit

Permalink
Merge pull request #1701 from unicef/feature/management_api_for_month…
Browse files Browse the repository at this point in the history
…ly_report

Fix bad conflict resolution
  • Loading branch information
robertavram authored Jul 2, 2018
2 parents 56afabe + bd0375b commit 871a2d3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/etools/applications/partners/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,9 +249,12 @@ def _notify_interventions_ending_soon(country_name):


@app.task
def pmp_indicator_report():
def pmp_indicator_report(writer, **kwargs):
base_url = 'https://etools.unicef.org'
countries = Country.objects.exclude(schema_name__in=['public', 'uat', 'frg'])
countries = kwargs.get('countries', None)
qs = Country.objects.exclude(schema_name__in=['public', 'uat', 'frg'])
if countries:
qs = qs.filter(schema_name__in=countries.pop().split(','))
fieldnames = [
'Country',
'Partner Name',
Expand Down

0 comments on commit 871a2d3

Please sign in to comment.