From 9ac10a8dd368eb0ab4d8ff0f3cb1e627b4ec4854 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Sat, 1 Apr 2023 18:25:14 +0000 Subject: [PATCH 1/2] refactor: Remove unnecessary whitespace Blank lines should not contain any tabs or spaces. --- run.py | 2 +- setup/args.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/run.py b/run.py index 7300567..c9c6303 100644 --- a/run.py +++ b/run.py @@ -13,7 +13,7 @@ print(""" +#+ +#+ +#+ +#+#+# +#+ +#+ +#+ +#+ +#+ +#+# +#+ #+# #+# #+# #+#+# #+# #+# #+# #+# #+# #+# #+# #+# ######## ### #### ########## ### ########## ######### ######### ######## - + Created by Fluffy Bean - Version 23.03.30 """) diff --git a/setup/args.py b/setup/args.py index f7760b0..af2f6dc 100644 --- a/setup/args.py +++ b/setup/args.py @@ -4,7 +4,7 @@ Startup arguments for the OnlyLegs gallery -p, --port: Port to run on (default: 5000) -a, --address: Address to run on (default: For Debug: localhost, For Production: 0.0.0.0) -w, --workers: Number of workers to run (default: 4) - + -d, --debug: Run as Flask app in debug mode (default: False) -S, --scream: Show verbose output (default: False) -h, --help: Show a help message From 1a541bc288fa6d207131144ebe3bebe628accd9a Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Sat, 1 Apr 2023 18:26:09 +0000 Subject: [PATCH 2/2] refactor: Remove unnecessary call to .bind() The bind() method is used to create functions with specific `this` values and, optionally, binds arguments to specific values. When used to specify the value of `this`, it's important that the function actually uses `this` in its function body. --- gallery/static/js/lable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gallery/static/js/lable.js b/gallery/static/js/lable.js index 4188422..b86161f 100644 --- a/gallery/static/js/lable.js +++ b/gallery/static/js/lable.js @@ -14,7 +14,7 @@ document.addEventListener('DOMContentLoaded', function() { setTimeout(function() { label.style.opacity = 1; - }.bind(this), 250); + }, 250); }); labels[i].addEventListener('mouseout', function() {