mirror of
https://github.com/lucaspalomodevelop/Party.git
synced 2026-03-13 08:09:37 +00:00
qr code
This commit is contained in:
parent
f913c0d3f7
commit
7070eb687d
12
main.py
12
main.py
@ -1,6 +1,18 @@
|
||||
from flask import Flask, render_template, jsonify, request, session, redirect
|
||||
import sqlite3
|
||||
import os
|
||||
import time
|
||||
import qrcode
|
||||
import shutil
|
||||
|
||||
if not os.path.exists("./static/img/qr.png"):
|
||||
img = qrcode.make('127.0.0.1:5000')
|
||||
type(img)
|
||||
img.save("qr.png")
|
||||
ort = "./static/img"
|
||||
shutil.move("qr.png", ort)
|
||||
|
||||
|
||||
|
||||
app = Flask(__name__, template_folder='templates/')
|
||||
date = time.strftime("%d-%m-%Y %H:%M:%S", time.localtime(time.time()))
|
||||
|
||||
BIN
static/img/qr.png
Normal file
BIN
static/img/qr.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 452 B |
@ -17,19 +17,6 @@
|
||||
<input type="color" id="colorpicker" value="#0000ff">
|
||||
|
||||
</div>
|
||||
<div id="Planer">
|
||||
<h3>Planer</h3>
|
||||
<p>Füge ein Event ein</p>
|
||||
<form class="modal-content animate" action="http://127.0.0.1:5000/get_event" method="POST">
|
||||
<div class="container">
|
||||
|
||||
<input type="text" placeholder="Tomb Raider spielen" name="event" required>
|
||||
|
||||
<input type="text" placeholder="15:30" name="zeit" required>
|
||||
<button type="submit">➕</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div id="userVerwaltung">
|
||||
<h1>User Verwaltung</h1>
|
||||
<p>An dieser Stelle sollen später die User angezeigt werden, und der Session Admin kann diese dann verwalten</p>
|
||||
|
||||
@ -8,6 +8,18 @@
|
||||
<title>Planer</title>
|
||||
</head>
|
||||
<body>
|
||||
<center><h1>Planer</h1></center>
|
||||
</body>
|
||||
<center><h1>Planer</h1>
|
||||
<p>Füge ein Event ein</p>
|
||||
<form class="modal-content animate" action="http://127.0.0.1:5000/get_event" method="POST">
|
||||
<div class="container">
|
||||
|
||||
<input type="text" placeholder="Tomb Raider spielen" name="event" required>
|
||||
|
||||
<input type="text" placeholder="15:30" name="zeit" required>
|
||||
<button type="submit">➕</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
</center>
|
||||
</body>
|
||||
</html>
|
||||
@ -11,6 +11,8 @@
|
||||
<center><h1>Session Informationen</h1></center>
|
||||
<p>User: </p>
|
||||
<p>Uptime: </p>
|
||||
<h1>QR-Code</h1>
|
||||
<img src="../static/img/qr.png"
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Loading…
x
Reference in New Issue
Block a user