mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 21:48:16 -08:00
fixing date issue
This commit is contained in:
parent
5bf44c310d
commit
fd6ec3af2a
1 changed files with 1 additions and 1 deletions
|
|
@ -310,7 +310,7 @@ namespace :data do
|
|||
|
||||
next if answer_index == 0
|
||||
|
||||
responded_at = Date.strptime(row['recordedDate'], '%Y-%m-%d %H:%M:%S')
|
||||
responded_at = Date.strptime(row['recordedDate'], '%Y-%m-%d %H:%M:%S') rescue Date.today
|
||||
begin
|
||||
recipient.attempts.create(question: question, answer_index: answer_index, responded_at: responded_at)
|
||||
rescue Exception => e
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue