mirror of
https://github.com/partitioncloud/partitioncloud-server.git
synced 2025-01-23 09:16:25 +01:00
Remove whitespaces
This commit is contained in:
parent
c702cb714e
commit
5d0535ef70
@ -114,7 +114,7 @@ class Album():
|
||||
"""
|
||||
SELECT partition.uuid FROM partition
|
||||
WHERE NOT EXISTS (
|
||||
SELECT NULL FROM contient_partition
|
||||
SELECT NULL FROM contient_partition
|
||||
WHERE partition.uuid = partition_uuid
|
||||
)
|
||||
"""
|
||||
@ -142,7 +142,7 @@ class Album():
|
||||
WHERE uuid IN (
|
||||
SELECT partition.uuid FROM partition
|
||||
WHERE NOT EXISTS (
|
||||
SELECT NULL FROM contient_partition
|
||||
SELECT NULL FROM contient_partition
|
||||
WHERE partition.uuid = partition_uuid
|
||||
)
|
||||
)
|
||||
|
@ -60,7 +60,7 @@ def log(content: list[Union[str, bool, int]], log_type: LogEntry) -> None:
|
||||
description = f"New user {content[0]}[{content[1]}]"
|
||||
else:
|
||||
description = f"New user {content[0]}[{content[1]}] added by {content[3]}"
|
||||
|
||||
|
||||
case LogEntry.SERVER_RESTART: # content = ()
|
||||
description = "Server just restarted"
|
||||
|
||||
|
@ -92,5 +92,5 @@ def partition_count():
|
||||
SELECT COUNT(*) FROM partition
|
||||
"""
|
||||
).fetchone()
|
||||
|
||||
|
||||
return count[0]
|
@ -2,7 +2,7 @@ let logsEmbed = document.getElementById("logs-embed");
|
||||
|
||||
logsEmbed.addEventListener("load", () => {
|
||||
var cssLink = document.createElement("link");
|
||||
|
||||
|
||||
cssLink.href = "/static/style/logs.css";
|
||||
cssLink.rel = "stylesheet";
|
||||
cssLink.type = "text/css";
|
||||
|
@ -17,7 +17,7 @@ async function hideSidebarNoAnim () {
|
||||
/* The transition needs to be invisible as if it was loaded that way */
|
||||
content_container.style.transitionDuration = "0s";
|
||||
sidebar_indicator.style.transitionDuration = "0s";
|
||||
|
||||
|
||||
sidebar_toggle.checked = true;
|
||||
|
||||
/* We need to set a sleep because we want to reset the transition duration only once it ended*/
|
||||
|
@ -656,7 +656,7 @@ td {
|
||||
/** Attachment page */
|
||||
#pdf-embed {
|
||||
margin: auto;
|
||||
|
||||
|
||||
width: 100%;
|
||||
width: -moz-available;
|
||||
width: -webkit-fill-available;
|
||||
|
@ -18,7 +18,7 @@
|
||||
|
||||
<body>
|
||||
<div id="dialogs">
|
||||
<!-- This div contains needed needed dialogs for the page
|
||||
<!-- This div contains needed needed dialogs for the page
|
||||
They will only appear if the user clicks a button for one of them -->
|
||||
{% block dialogs %}{% endblock %}
|
||||
{% if g.user %}
|
||||
|
@ -38,7 +38,7 @@
|
||||
{{ _("Let's go !") }}
|
||||
</button>
|
||||
</a>
|
||||
<a href="https://github.com/partitioncloud/partitioncloud-server" class="no-color-link">
|
||||
<a href="https://github.com/partitioncloud/partitioncloud-server" class="no-color-link">
|
||||
<button>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M16 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" /><path d="M12 8m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" /><path d="M12 16m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" /><path d="M12 15v-6" /><path d="M15 11l-2 -2" /><path d="M11 7l-1.9 -1.9" /><path d="M13.446 2.6l7.955 7.954a2.045 2.045 0 0 1 0 2.892l-7.955 7.955a2.045 2.045 0 0 1 -2.892 0l-7.955 -7.955a2.045 2.045 0 0 1 0 -2.892l7.955 -7.955a2.045 2.045 0 0 1 2.892 0z" /></svg>
|
||||
{{ _("Check code") }}
|
||||
|
@ -27,7 +27,7 @@
|
||||
<script src="https://cdn.jsdelivr.net/combine/npm/tone@14.7.58,npm/@magenta/music@1.23.1/es6/core.js,npm/focus-visible@5,npm/html-midi-player@1.5.0"></script>
|
||||
<midi-visualizer type="staff" id="midi-visualizer"></midi-visualizer>
|
||||
|
||||
|
||||
|
||||
{% if partition.attachments | length > 0 %}
|
||||
<div id="attachments">
|
||||
<table>
|
||||
@ -38,7 +38,7 @@
|
||||
<td><audio controls src="/partition/attachment/{{ attachment.uuid }}.mp3"></td>
|
||||
<td>🎙️ {{ attachment.name }}</td>
|
||||
{% elif attachment.filetype == "mid" %}
|
||||
|
||||
|
||||
<td><midi-player
|
||||
src="/partition/attachment/{{ attachment.uuid }}.mid"
|
||||
sound-font visualizer="#midi-visualizer" data-js-focus-visible>
|
||||
|
@ -58,7 +58,7 @@ def install_package(package):
|
||||
return
|
||||
print(f"{Fore.RED}Installation with pip failed{Style.RESET_ALL}")
|
||||
sys.exit(return_value)
|
||||
|
||||
|
||||
elif choice == 2:
|
||||
input("Install via you preferred option, and hit [Enter] when done")
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user