Skip to content

Commit

Permalink
Merge pull request #955 from kartoza/download-action-on-sites
Browse files Browse the repository at this point in the history
patch: add missing comma on row
  • Loading branch information
tinashechiraya authored Mar 5, 2024
2 parents e9529de + 2c991b5 commit 41adc12
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions django_project/monitor/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,13 +126,15 @@ def download_records(self, request, queryset):
user_organization_name = "N/A"
user_country = "N/A"
user_is_expert = False

obs_date_str = obs.obs_date.strftime('%Y-%m-%d')
writer.writerow(
[
smart_str(obs.user.username),
smart_str(user_organization_name),
smart_str(user_country),
smart_str(user_is_expert),
smart_str(obs.obs_date),
smart_str(obs_date_str),
smart_str(obs.site.site_name),
smart_str(obs.site.river_name),
smart_str(obs.site.river_cat),
Expand Down Expand Up @@ -218,9 +220,9 @@ def download_selected_sites(self, request, queryset):
'Site Location',
'Created By',
'User Organization Name',
'User Expert Status'
'User Expert Status',
'User Country',
'Site Created On'
'Site Creation Date'
])

for site in queryset:
Expand Down

0 comments on commit 41adc12

Please sign in to comment.