Skip to content

Commit

Permalink
just day
Browse files Browse the repository at this point in the history
  • Loading branch information
djstockma committed Sep 3, 2024
1 parent ae12853 commit 6ed74b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions teknologr/api/tests_dumps.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ class Arsk(BaseClass, DumpsTestCases):
'country': 'Finland',
'associations': 'Hedersmedlem,Funkkis',
}]

today = datetime.today().strftime('%Y-%m-%d')
class RegEmails(BaseClass, DumpsTestCases):
path = f'/api/dump-regemails/'
response = [{
Expand All @@ -128,7 +128,7 @@ class RegEmails(BaseClass, DumpsTestCases):
'preferred_name': 'Svatta',
'email': '[email protected]',
'language': 'Svenska',
'application_time': '2000-00-00T10:57:10.775437Z > None',
'application_time': f'{today}',
}]

class Studentbladet(BaseClass, DumpsTestCases):
Expand Down
2 changes: 1 addition & 1 deletion teknologr/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,7 @@ def dump_reg_emails(request):
'preferred_name': applicant.preferred_name,
'email': applicant.email,
'language': applicant.mother_tongue,
'application_time': applicant.created_at,
'application_time': applicant.created_at.strftime('%Y-%m-%d'),
} for applicant in applicants]

return Response(content, status=200)
Expand Down

0 comments on commit 6ed74b2

Please sign in to comment.