GoCorona-org / Backend

GNU General Public License v3.0
0 stars 2 forks source link

/report API does not validate post data (data corrupted in DB) #33

Open theTechie opened 4 years ago

theTechie commented 4 years ago

Looks like the validation is missing while posting data to the API.

But the validation is in place while fetching data doing GET. This is causing the fetch API to fail since the data is corrupted now.

time data '27:03:2020:12:50:00' does not match format '%H.%M.%m.%d.%Y'

Request Method: GET
Request URL: http://52.66.156.232:8000/map/positive/
Django Version: 3.0.5
Python Executable: /usr/bin/python3
Python Version: 3.6.9
Python Path: ['/home/ubuntu/Backend-sanjanamoha/api/corona_project', '/usr/lib/python36.zip', '/usr/lib/python3.6', '/usr/lib/python3.6/lib-dynload', '/home/ubuntu/.local/lib/python3.6/site-packages', '/usr/local/lib/python3.6/dist-packages', '/usr/lib/python3/dist-packages']
Server time: Sat, 25 Apr 2020 10:08:19 +0000
Installed Applications:
['django.contrib.admin',
 'django.contrib.auth',
theTechie commented 4 years ago

@sanjanamoha @codeJRV FYI

sanjanamoha commented 4 years ago

Please mention all the validations you would require for the input formats of intersection calculation.