diff --git a/app.py b/app.py index f9d91e5..2bc377e 100644 --- a/app.py +++ b/app.py @@ -36,16 +36,8 @@ def search_for_doctors_with_params(): therapy_setting = search_form.therapy_setting.data amount_of_weeks = search_form.amount_of_weeks.data - print(f"Location: {location}") - print(f"Distance: {distance}") - print(f"Therapy Types: {therapy_types}") - print(f"Age Range: {therapy_age_range}") - print(f"Therapy Setting: {therapy_setting}") - print(f"Therapy Phone Types: {amount_of_weeks}") - # If errors in data -> redirect to index else: - print(search_form.errors) return redirect("/") # Create an APIHandler to process the given data by gathering the desired phone times @@ -60,7 +52,8 @@ def search_for_doctors_with_params(): # Calculate the required base64 value why so ever base64_value = api_handler.calculate_req_value_base64(float(location_match["lat"]), float(location_match["lon"])) # Get the general list of doctors - api_handler.get_list_of_doctors(float(location_match["lat"]), float(location_match["lon"]), base64_value, therapy_types, therapy_age_range, therapy_setting, amount_of_weeks) + api_handler.get_list_of_doctors(float(location_match["lat"]), float(location_match["lon"]), base64_value, + therapy_types, therapy_age_range, therapy_setting, amount_of_weeks) # Get their information api_handler.get_general_doctor_information() # Filter for the distance @@ -72,6 +65,6 @@ def search_for_doctors_with_params(): return render_template("result.html", doctors=sorted_doctor_phone_times) -if __name__ == '__main__': - serve(app, host="0.0.0.0", port=8080) - +@app.route('/about') +def about(): + return render_template("about.html") diff --git a/templates/about.html b/templates/about.html new file mode 100644 index 0000000..32cf89a --- /dev/null +++ b/templates/about.html @@ -0,0 +1,27 @@ +{% extends "base.html" %} + +{% block content %} +
+
+
+

Über TheraPy

+
+

+ TheraPy ist ein Projekt des Binary Kitchen e.V. und hat zum Ziel, die Zugangshürde zu + psychotherapeuthisher Behandlung zu senken. +

+

+ Die hier vorliegenden Daten stammen direkt von der API + der 116117 Arztsuche und erheben keinen Anspruch auf Vollständigkeit und Richtigkeit, noch stellt + dieser Service garantierte Leistungen bereit. +

+

+ Wir speichern keine medizinischen Daten von dir und können nicht nachvollziehen, welche Psychotherapeuth:innen du kontaktiert hast. +

+

+ Dieser Service ist aktuell rein experimentell. Für weitere Anliegen erreicht ihr uns unter + therapy-jetzt@binary-kitchen.de +

+
+
+{% endblock %} \ No newline at end of file diff --git a/templates/base.html b/templates/base.html index d9ee5b6..89a5176 100644 --- a/templates/base.html +++ b/templates/base.html @@ -13,9 +13,13 @@ TheraPy
- Home - About + TheraPy + About
+
+ Datenschutz + Impressum +