Skip to content

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

@theTechie

Description

@theTechie

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',

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions