mirror of
https://github.com/PhoenixTwoFive/karaoqueue.git
synced 2025-07-01 15:51:41 +02:00
Compare commits
15 Commits
06594855d6
...
legacy
Author | SHA1 | Date | |
---|---|---|---|
b38f5edd9e | |||
374a080b0e | |||
8a9fa436d8 | |||
4ec347988a | |||
ec89ac482d | |||
836b509a7d | |||
6da62c4132
|
|||
34a7ea1a55
|
|||
555cdda631
|
|||
cc4c538e91 | |||
a03c1c41bb
|
|||
ed09a93b3d
|
|||
0234d64bf2
|
|||
eb86575332
|
|||
1cf6a6a733 |
8
.github/dependabot.yml
vendored
Normal file
8
.github/dependabot.yml
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
version: 2
|
||||
updates:
|
||||
- package-ecosystem: "pip"
|
||||
directory: "/backend"
|
||||
schedule:
|
||||
interval: "weekly"
|
||||
day: "sunday"
|
||||
time: "16:00"
|
3
.vscode/settings.json
vendored
3
.vscode/settings.json
vendored
@ -10,5 +10,8 @@
|
||||
"python.testing.unittestEnabled": true,
|
||||
"emmet.includeLanguages": {
|
||||
"django-html": "html"
|
||||
},
|
||||
"yaml.schemas": {
|
||||
"https://json.schemastore.org/dependabot-2.0.json": "file:///home/phillip/Projekte/Software/StuK/karaoqueue/dependabot.yml"
|
||||
}
|
||||
}
|
@ -32,11 +32,9 @@ def favicon():
|
||||
@nocache
|
||||
def enqueue():
|
||||
if not request.json:
|
||||
print(request.data)
|
||||
abort(400)
|
||||
client_id = request.json['client_id']
|
||||
if not helpers.is_valid_uuid(client_id):
|
||||
print(request.data)
|
||||
abort(400)
|
||||
name = request.json['name'].strip()
|
||||
song_id = request.json['id']
|
||||
@ -46,11 +44,9 @@ def enqueue():
|
||||
else:
|
||||
if helpers.get_accept_entries(app):
|
||||
if not request.json:
|
||||
print(request.data)
|
||||
abort(400)
|
||||
client_id = request.json['client_id']
|
||||
if not helpers.is_valid_uuid(client_id):
|
||||
print(request.data)
|
||||
abort(400)
|
||||
name = request.json['name']
|
||||
song_id = request.json['id']
|
||||
@ -203,7 +199,6 @@ def get_stats():
|
||||
# Return data from long_term_stats as csv
|
||||
def get_stats_csv():
|
||||
db_result = database.get_long_term_stats()
|
||||
print(db_result)
|
||||
csv = "Id,Playbacks\n"
|
||||
for row in db_result:
|
||||
csv += str(row[0]) + "," + str(row[1]) + "\n"
|
||||
@ -258,14 +253,11 @@ def delete_entry_admin(entry_id):
|
||||
@nocache
|
||||
def delete_entry_user(entry_id):
|
||||
if not request.json:
|
||||
print(request.data)
|
||||
abort(400)
|
||||
client_id = request.json['client_id']
|
||||
if not helpers.is_valid_uuid(client_id):
|
||||
print(request.data)
|
||||
abort(400)
|
||||
if database.get_raw_entry(entry_id)[3] != client_id: # type: ignore
|
||||
print(request.data)
|
||||
abort(403)
|
||||
if database.delete_entry(entry_id):
|
||||
return Response('{"status": "OK"}', mimetype='text/json')
|
||||
@ -278,7 +270,6 @@ def delete_entry_user(entry_id):
|
||||
@basic_auth.required
|
||||
def delete_entries():
|
||||
if not request.json:
|
||||
print(request.data)
|
||||
abort(400)
|
||||
return
|
||||
updates = database.delete_entries(request.json)
|
||||
|
@ -298,8 +298,7 @@ def transfer_playbacks():
|
||||
ON DUPLICATE KEY
|
||||
UPDATE Playbacks = lts.Playbacks + VALUES(Playbacks);
|
||||
""")
|
||||
result = conn.execute(stmt)
|
||||
print(result)
|
||||
conn.execute(stmt)
|
||||
conn.commit()
|
||||
return True
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
autopep8==2.0.4
|
||||
beautifulsoup4==4.12.3
|
||||
blinker==1.7.0
|
||||
blinker==1.8.2
|
||||
bs4==0.0.2
|
||||
certifi==2024.2.2
|
||||
charset-normalizer==3.3.2
|
||||
@ -33,8 +33,8 @@ soupsieve==2.5
|
||||
SQLAlchemy==2.0.27
|
||||
toml==0.10.2
|
||||
tomli==2.0.1
|
||||
tomlkit==0.12.3
|
||||
tomlkit==0.13.2
|
||||
typing_extensions==4.9.0
|
||||
tzdata==2024.1
|
||||
tzdata==2024.2
|
||||
urllib3==2.2.0
|
||||
Werkzeug==3.0.1
|
||||
|
@ -63,9 +63,14 @@ body {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.table {
|
||||
color: var(--text-color);
|
||||
}
|
||||
|
||||
table td {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
color: var(--text-color);
|
||||
}
|
||||
|
||||
table.entries tbody tr[data-index="0"] {
|
||||
@ -234,5 +239,8 @@ pre {
|
||||
/* Toasts */
|
||||
--toast-background-color: #232323;
|
||||
--toast-text-color: #f5f5f5;
|
||||
|
||||
/* Tables */
|
||||
--table-border-color: #232323;
|
||||
}
|
||||
}
|
@ -86,7 +86,7 @@
|
||||
{% endif %}
|
||||
<a href="https://github.com/PhoenixTwoFive/karaoqueue" class="ml-1 mr-1"><i
|
||||
class="fab fa-github mr-1"></i><span>Github</span></a>
|
||||
<span class="text-muted"> {{karaoqueue_version}} - 2019-23 - <span id="myName">Phillip
|
||||
<span class="text-muted"> {{karaoqueue_version}} - 2019-24 - <span id="myName">Phillip
|
||||
Kühne</span></span>
|
||||
</div>
|
||||
</footer>
|
||||
|
Reference in New Issue
Block a user