diff options
author | Petr Šmerkl <46304018+SveterCZE@users.noreply.github.com> | 2021-05-02 00:20:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-02 00:20:34 +0200 |
commit | f570429c77cffbc9893acf0d3d5802cec8559a6b (patch) | |
tree | 6485bb45ada2f8ac7e5479a756bcc3c9d9b85110 | |
parent | c57b984bf12b9ec8e4ff110970868fbc480096d0 (diff) | |
parent | 70db77b2ef24b3cf26e809da6f5f99e67095bfbe (diff) | |
download | justice-f570429c77cffbc9893acf0d3d5802cec8559a6b.tar.gz |
Merge pull request #4 from SveterCZE/new-features-branch
minor changes
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | __pycache__/key_gen.cpython-38.pyc | bin | 0 -> 230 bytes | |||
-rw-r--r-- | app.py | 4 | ||||
-rw-r--r-- | templates/results_entities.html | 2 | ||||
-rw-r--r-- | templates/search_form.html | 2 |
5 files changed, 4 insertions, 5 deletions
@@ -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 Binary files differnew file mode 100644 index 0000000..2977cea --- /dev/null +++ b/__pycache__/key_gen.cpython-38.pyc @@ -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 |