Remove whitespaces

This commit is contained in:
augustin64 2024-02-25 15:54:48 +01:00
parent c702cb714e
commit 5d0535ef70
10 changed files with 12 additions and 12 deletions

View File

@ -114,7 +114,7 @@ class Album():
""" """
SELECT partition.uuid FROM partition SELECT partition.uuid FROM partition
WHERE NOT EXISTS ( WHERE NOT EXISTS (
SELECT NULL FROM contient_partition SELECT NULL FROM contient_partition
WHERE partition.uuid = partition_uuid WHERE partition.uuid = partition_uuid
) )
""" """
@ -142,7 +142,7 @@ class Album():
WHERE uuid IN ( WHERE uuid IN (
SELECT partition.uuid FROM partition SELECT partition.uuid FROM partition
WHERE NOT EXISTS ( WHERE NOT EXISTS (
SELECT NULL FROM contient_partition SELECT NULL FROM contient_partition
WHERE partition.uuid = partition_uuid WHERE partition.uuid = partition_uuid
) )
) )

View File

@ -60,7 +60,7 @@ def log(content: list[Union[str, bool, int]], log_type: LogEntry) -> None:
description = f"New user {content[0]}[{content[1]}]" description = f"New user {content[0]}[{content[1]}]"
else: else:
description = f"New user {content[0]}[{content[1]}] added by {content[3]}" description = f"New user {content[0]}[{content[1]}] added by {content[3]}"
case LogEntry.SERVER_RESTART: # content = () case LogEntry.SERVER_RESTART: # content = ()
description = "Server just restarted" description = "Server just restarted"

View File

@ -92,5 +92,5 @@ def partition_count():
SELECT COUNT(*) FROM partition SELECT COUNT(*) FROM partition
""" """
).fetchone() ).fetchone()
return count[0] return count[0]

View File

@ -2,7 +2,7 @@ let logsEmbed = document.getElementById("logs-embed");
logsEmbed.addEventListener("load", () => { logsEmbed.addEventListener("load", () => {
var cssLink = document.createElement("link"); var cssLink = document.createElement("link");
cssLink.href = "/static/style/logs.css"; cssLink.href = "/static/style/logs.css";
cssLink.rel = "stylesheet"; cssLink.rel = "stylesheet";
cssLink.type = "text/css"; cssLink.type = "text/css";

View File

@ -17,7 +17,7 @@ async function hideSidebarNoAnim () {
/* The transition needs to be invisible as if it was loaded that way */ /* The transition needs to be invisible as if it was loaded that way */
content_container.style.transitionDuration = "0s"; content_container.style.transitionDuration = "0s";
sidebar_indicator.style.transitionDuration = "0s"; sidebar_indicator.style.transitionDuration = "0s";
sidebar_toggle.checked = true; sidebar_toggle.checked = true;
/* We need to set a sleep because we want to reset the transition duration only once it ended*/ /* We need to set a sleep because we want to reset the transition duration only once it ended*/

View File

@ -656,7 +656,7 @@ td {
/** Attachment page */ /** Attachment page */
#pdf-embed { #pdf-embed {
margin: auto; margin: auto;
width: 100%; width: 100%;
width: -moz-available; width: -moz-available;
width: -webkit-fill-available; width: -webkit-fill-available;

View File

@ -18,7 +18,7 @@
<body> <body>
<div id="dialogs"> <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 --> They will only appear if the user clicks a button for one of them -->
{% block dialogs %}{% endblock %} {% block dialogs %}{% endblock %}
{% if g.user %} {% if g.user %}

View File

@ -38,7 +38,7 @@
&nbsp; {{ _("Let's go !") }} &nbsp; {{ _("Let's go !") }}
</button> </button>
</a> </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> <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> <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>
&nbsp; {{ _("Check code") }} &nbsp; {{ _("Check code") }}

View File

@ -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> <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> <midi-visualizer type="staff" id="midi-visualizer"></midi-visualizer>
{% if partition.attachments | length > 0 %} {% if partition.attachments | length > 0 %}
<div id="attachments"> <div id="attachments">
<table> <table>
@ -38,7 +38,7 @@
<td><audio controls src="/partition/attachment/{{ attachment.uuid }}.mp3"></td> <td><audio controls src="/partition/attachment/{{ attachment.uuid }}.mp3"></td>
<td>🎙️ {{ attachment.name }}</td> <td>🎙️ {{ attachment.name }}</td>
{% elif attachment.filetype == "mid" %} {% elif attachment.filetype == "mid" %}
<td><midi-player <td><midi-player
src="/partition/attachment/{{ attachment.uuid }}.mid" src="/partition/attachment/{{ attachment.uuid }}.mid"
sound-font visualizer="#midi-visualizer" data-js-focus-visible> sound-font visualizer="#midi-visualizer" data-js-focus-visible>

View File

@ -58,7 +58,7 @@ def install_package(package):
return return
print(f"{Fore.RED}Installation with pip failed{Style.RESET_ALL}") print(f"{Fore.RED}Installation with pip failed{Style.RESET_ALL}")
sys.exit(return_value) sys.exit(return_value)
elif choice == 2: elif choice == 2:
input("Install via you preferred option, and hit [Enter] when done") input("Install via you preferred option, and hit [Enter] when done")
return return