add about, impress, privacy, make production ready
This commit is contained in:
parent
a6f90d6aff
commit
a8e899d92d
17
app.py
17
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")
|
||||
|
27
templates/about.html
Normal file
27
templates/about.html
Normal file
@ -0,0 +1,27 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<div class="container mx-auto px-4 py-6">
|
||||
<div class="flex flex-col">
|
||||
<div class="w-full">
|
||||
<h2 class="text-2xl font-bold mb-4">Über TheraPy</h2>
|
||||
</div>
|
||||
<p class="mb-3 text-lg md:text-xl dark:text-gray-400">
|
||||
TheraPy ist ein Projekt des Binary Kitchen e.V. und hat zum Ziel, die Zugangshürde zu
|
||||
psychotherapeuthisher Behandlung zu senken.
|
||||
</p>
|
||||
<p class="mb-3 text-lg md:text-xl dark:text-gray-400">
|
||||
Die hier vorliegenden Daten stammen direkt von der <a class="mx-2" href="https://arztsuche.116117.de/">API
|
||||
der 116117 Arztsuche</a> und erheben keinen Anspruch auf Vollständigkeit und Richtigkeit, noch stellt
|
||||
dieser Service garantierte Leistungen bereit.
|
||||
</p>
|
||||
<p class="mb-3 text-lg md:text-xl dark:text-gray-400">
|
||||
Wir speichern keine medizinischen Daten von dir und können nicht nachvollziehen, welche Psychotherapeuth:innen du kontaktiert hast.
|
||||
</p>
|
||||
<p class="mb-3 text-lg md:text-xl dark:text-gray-400">
|
||||
Dieser Service ist aktuell rein experimentell. Für weitere Anliegen erreicht ihr uns unter
|
||||
therapy-jetzt@binary-kitchen.de
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
@ -13,9 +13,13 @@
|
||||
<a class="btn btn-ghost text-xl" href="#">TheraPy</a>
|
||||
</div>
|
||||
<div class="flex justify-center mr-auto">
|
||||
<a class="mx-2" href="#">Home</a>
|
||||
<a class="mx-2" href="#">About</a>
|
||||
<a class="mx-2" href="/">TheraPy</a>
|
||||
<a class="mx-2" href="/about">About</a>
|
||||
</div>
|
||||
<div class="flex justify-right">
|
||||
<a class="mx-2" href="https://www.binary-kitchen.de/wiki/datenschutz">Datenschutz</a>
|
||||
<a class="mx-2" href="https://www.binary-kitchen.de/wiki/impressum">Impressum</a>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<section class="content p-4">
|
||||
|
Loading…
Reference in New Issue
Block a user