From 8ca7d1cbe2a38bddc110a52025178da39615c8d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yi=C4=9Fit=20=C3=87olako=C4=9Flu?= Date: Sat, 22 Jun 2019 16:15:50 +0300 Subject: [PATCH 1/2] Finished crash website --- .../interface/UserData/complaints.html | 2 +- client_side/interface/UserData/crashes.html | 132 ++- server_side/api/modules/SpotSelector.py | 2 +- server_side/api/modules/car_crash.py | 448 ++++--- server_side/api/modules/complaint.py | 4 +- .../api/modules/databases/complaints.json | 2 +- .../api/modules/databases/crashes.json | 1039 +---------------- server_side/api/modules/denunciation.py | 2 +- server_side/api/modules/navigation.py | 6 +- server_side/api/modules/rating_system.py | 4 +- server_side/api/modules/smart_park.py | 2 +- server_side/api/modules/user_info.py | 4 +- server_side/api/modules/user_set.py | 2 +- server_side/api/modules/voting_system.py | 4 +- traffic_analyzer/images/train_image_taker.py | 4 +- 15 files changed, 357 insertions(+), 1300 deletions(-) diff --git a/client_side/interface/UserData/complaints.html b/client_side/interface/UserData/complaints.html index d0e9e75..b72f66c 100644 --- a/client_side/interface/UserData/complaints.html +++ b/client_side/interface/UserData/complaints.html @@ -206,7 +206,7 @@ document.getElementById("trust").innerHTML = users[id]["trustability"]; document.getElementById("phone").innerHTML = users[id]["tel"]; document.getElementById("email").innerHTML = users[id]["email"]; - document.getElementById("img-user").setAttribute("src","https://" + document.domain + ":5000" + users[id]["avatar"]) + document.getElementById("img-user").setAttribute("src","data:image/png;base64," + users[id]["image"]) } } function sendUpdate(form) { diff --git a/client_side/interface/UserData/crashes.html b/client_side/interface/UserData/crashes.html index 4823ed9..0ba5835 100644 --- a/client_side/interface/UserData/crashes.html +++ b/client_side/interface/UserData/crashes.html @@ -21,21 +21,6 @@