From 5d0535ef70799268e425b5d91f02869646a72df3 Mon Sep 17 00:00:00 2001 From: augustin64 Date: Sun, 25 Feb 2024 15:54:48 +0100 Subject: [PATCH] Remove whitespaces --- partitioncloud/modules/classes/album.py | 4 ++-- partitioncloud/modules/logging.py | 2 +- partitioncloud/modules/utils.py | 2 +- partitioncloud/static/scripts/logs.js | 2 +- partitioncloud/static/scripts/main.js | 2 +- partitioncloud/static/style/style.css | 2 +- partitioncloud/templates/base.html | 2 +- partitioncloud/templates/launch.html | 2 +- partitioncloud/templates/partition/attachments.html | 4 ++-- scripts/hooks/utils.py | 2 +- 10 files changed, 12 insertions(+), 12 deletions(-) diff --git a/partitioncloud/modules/classes/album.py b/partitioncloud/modules/classes/album.py index 6812701..441d95d 100644 --- a/partitioncloud/modules/classes/album.py +++ b/partitioncloud/modules/classes/album.py @@ -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 ) ) diff --git a/partitioncloud/modules/logging.py b/partitioncloud/modules/logging.py index 826eb59..54bc370 100644 --- a/partitioncloud/modules/logging.py +++ b/partitioncloud/modules/logging.py @@ -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" diff --git a/partitioncloud/modules/utils.py b/partitioncloud/modules/utils.py index 6abdc07..daf73d1 100644 --- a/partitioncloud/modules/utils.py +++ b/partitioncloud/modules/utils.py @@ -92,5 +92,5 @@ def partition_count(): SELECT COUNT(*) FROM partition """ ).fetchone() - + return count[0] \ No newline at end of file diff --git a/partitioncloud/static/scripts/logs.js b/partitioncloud/static/scripts/logs.js index 0ea48c5..1eaa8ab 100644 --- a/partitioncloud/static/scripts/logs.js +++ b/partitioncloud/static/scripts/logs.js @@ -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"; diff --git a/partitioncloud/static/scripts/main.js b/partitioncloud/static/scripts/main.js index 264c0c4..fc9ffa3 100644 --- a/partitioncloud/static/scripts/main.js +++ b/partitioncloud/static/scripts/main.js @@ -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*/ diff --git a/partitioncloud/static/style/style.css b/partitioncloud/static/style/style.css index b761619..49fccd5 100644 --- a/partitioncloud/static/style/style.css +++ b/partitioncloud/static/style/style.css @@ -656,7 +656,7 @@ td { /** Attachment page */ #pdf-embed { margin: auto; - + width: 100%; width: -moz-available; width: -webkit-fill-available; diff --git a/partitioncloud/templates/base.html b/partitioncloud/templates/base.html index 1780533..0c95a4e 100644 --- a/partitioncloud/templates/base.html +++ b/partitioncloud/templates/base.html @@ -18,7 +18,7 @@
- {% block dialogs %}{% endblock %} {% if g.user %} diff --git a/partitioncloud/templates/launch.html b/partitioncloud/templates/launch.html index eefa1e7..8442584 100644 --- a/partitioncloud/templates/launch.html +++ b/partitioncloud/templates/launch.html @@ -38,7 +38,7 @@   {{ _("Let's go !") }} - +