aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--__pycache__/key_gen.cpython-38.pycbin0 -> 230 bytes
-rw-r--r--app.py4
-rw-r--r--templates/results_entities.html2
-rw-r--r--templates/search_form.html2
5 files changed, 4 insertions, 5 deletions
diff --git a/.gitignore b/.gitignore
index ac1e286..8aed012 100644
--- a/.gitignore
+++ b/.gitignore
@@ -398,3 +398,4 @@ templates/extract.html
__pycache__/db_creation.cpython-38.pyc
__pycache__/download_files.cpython-38.pyc
__pycache__/update_db.cpython-38.pyc
+key_gen.py
diff --git a/__pycache__/key_gen.cpython-38.pyc b/__pycache__/key_gen.cpython-38.pyc
new file mode 100644
index 0000000..2977cea
--- /dev/null
+++ b/__pycache__/key_gen.cpython-38.pyc
Binary files differ
diff --git a/app.py b/app.py
index 57572ab..39c96e0 100644
--- a/app.py
+++ b/app.py
@@ -10,12 +10,12 @@ Created on Sun Jan 17 09:38:19 2021
from flask import Flask
from flask_debugtoolbar import DebugToolbarExtension
from flask_sqlalchemy import SQLAlchemy
+from key_gen import get_key
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///justice.db'
app.config["SQLALCHEMY_ECHO"] = True
app.debug = True
-# CHANGE THIS FOR PRODUCTION :)
-app.secret_key = "123456"
+app.secret_key = get_key
toolbar = DebugToolbarExtension(app)
db = SQLAlchemy(app) \ No newline at end of file
diff --git a/templates/results_entities.html b/templates/results_entities.html
index b45b65f..8465a9c 100644
--- a/templates/results_entities.html
+++ b/templates/results_entities.html
@@ -89,7 +89,7 @@
<td style="width:20%">Název:</td>
<td style="width:40%"><b>{{ row.nazev }}</b></td>
<td style="width:15%">IČO:</td>
- <td style="width:25%"><b>{{ row.ico }}</b></td>
+ <td style="width:25%"><a href="/{{ row.ico }}"><b>{{ row.ico }}</b></a></td>
</tr>
<tr>
diff --git a/templates/search_form.html b/templates/search_form.html
index 83ae305..14c387d 100644
--- a/templates/search_form.html
+++ b/templates/search_form.html
@@ -104,6 +104,4 @@
<p><input type="submit" value="Search">
</p>
</form>
-
-<p><a href="/trivia">Další zajímvavé údaje z obchodního resjtříku.</a></p>
{% include 'footer.html' %} \ No newline at end of file