Skip to content
This repository has been archived by the owner on Jun 24, 2024. It is now read-only.

Commit

Permalink
handle null values in sent_date
Browse files Browse the repository at this point in the history
  • Loading branch information
monodo committed Jun 22, 2023
1 parent 8e4cef6 commit 3a028ba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion geocity/apps/submissions/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,9 @@ def search_result_to_json(result):
"author": result.author_name,
"status": result.submission_status,
"createdAt": result.submission_created_at.strftime("%d.%m.%Y"),
"sentDate": result.submission_sent_date.strftime("%d.%m.%Y"),
"sentDate": result.submission_sent_date.strftime("%d.%m.%Y")
if result.submission_sent_date
else "",
},
"match": {
"fieldLabel": result.field_label,
Expand Down

0 comments on commit 3a028ba

Please sign in to comment.