Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
chaos_familien_duell_frontend
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mowoe
chaos_familien_duell_frontend
Commits
bcc96f36
Commit
bcc96f36
authored
6 years ago
by
mowoe
Browse files
Options
Downloads
Patches
Plain Diff
bt p
parent
5d820dcf
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
main.py
+11
-11
11 additions, 11 deletions
main.py
templates/index.html
+16
-6
16 additions, 6 deletions
templates/index.html
with
27 additions
and
17 deletions
main.py
+
11
−
11
View file @
bcc96f36
...
...
@@ -23,16 +23,16 @@ class Answers(Model):
database
=
db
questions
=
[[
"
wie heisst du?
"
,
0
],
[
"
wo wohnst du?
"
,
1
],
[
"
brot?
"
,
2
],
[
"
was ist das beste hackaspace
"
,
3
],
[
"
lol
"
,
4
],
[
"
lel
"
,
5
],
[
"
lul
"
,
6
],
[
"
lal
"
,
7
],
[
"
loel
"
,
8
],
[
"
lil
"
,
9
]]
questions
=
[[
"
Welchen Dienst nutzt du nur, weil andere dich dazu zwingen?
"
,
0
],
[
"
Welcher Konzern hat schon einmal eure Daten geleaked?
"
,
1
],
[
"
Welche deiner persoenlichen Angaben findet man nicht bei Facebook?
"
,
2
],
[
"
In welchem Land koennen sich Whistleblower am besten verstecken?
"
,
3
],
[
"
Welche Politikerin/welcher Politiker hat das Internet am besten verstanden?
"
,
4
],
[
"
Welches ist das haeufigste Passwort?
"
,
5
],
[
"
Welcher Promi wird der deutsche Trump?
"
,
6
],
[
"
Welcher Beruf wird als naechstes durch Maschinen ersetzt?
"
,
7
],
[
"
Welcher Beruf kann nicht durch Maschinen ersetzt werden?
"
,
8
],
[
"
Guten Morgen, Linus
"
,
9
]]
app
=
Flask
(
__name__
)
...
...
@@ -63,4 +63,4 @@ def submit():
if
__name__
==
"
__main__
"
:
db
.
connect
()
db
.
create_tables
([
Answers
])
app
.
run
(
"
0.0.0.0
"
)
\ No newline at end of file
app
.
run
(
"
0.0.0.0
"
,
debug
=
True
)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
templates/index.html
+
16
−
6
View file @
bcc96f36
...
...
@@ -4,16 +4,26 @@
<link
rel=
"stylesheet"
href=
"/static/main.css"
>
</head>
<body>
<div
class=
"hor-cent mt-4 pt-2 px-3 pb-5 mb-3"
>
<h2
class=
""
>
Chaosfamilien-Duell LNP300
</h2>
<div
class=
"imgplacer"
>
<img
src=
"/static/LNP300.jpg"
alt=
"lnp300"
>
</div>
<div
class=
"mx-5"
>
<br>
<form
action=
"/submit"
method=
"POST"
>
{% for quest in questions %}
{% set questid = quest[1] %}
{% set questtext = quest[0] %}
{% for quest in questions %}
{% set questid = quest[1] %}
{% set questtext = quest[0] %}
{{ questtext }}
<br>
<input
type=
"text"
name=
"{{questid}}"
value=
""
>
<input
type=
"text"
class=
"fw"
name=
"{{questid}}"
value=
""
>
<br><br>
{% endfor %}
<input
type=
"submit"
value=
"Submit"
>
{% endfor %}
<input
type=
"submit"
value=
"Submit"
>
</form>
</div>
</div>
</body>
</html>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment