From 341d5b0ee8834b121128b35cadf04f20f5cbb255 Mon Sep 17 00:00:00 2001
From: Fluffy-Bean <michal-gdula@protonmail.com>
Date: Wed, 19 Apr 2023 18:11:19 +0000
Subject: [PATCH] Sometimes I hate coding

---
 onlylegs/static/js/popup.js     | 4 ++--
 onlylegs/static/js/uploadTab.js | 6 +++---
 setup/runner.py                 | 3 ++-
 3 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/onlylegs/static/js/popup.js b/onlylegs/static/js/popup.js
index 9438197..b0b19ac 100644
--- a/onlylegs/static/js/popup.js
+++ b/onlylegs/static/js/popup.js
@@ -34,7 +34,7 @@ function popUpShow(titleText, subtitleText, bodyContent=null, userActions=null)
     // Stop scrolling and show popup
     document.querySelector("html").style.overflow = "hidden";
     popupSelector.style.display = 'block';
-    setTimeout(function() { popupSelector.classList.add('active') }, 5);  // 2ms delay to allow for css transition >:C
+    setTimeout(() => { popupSelector.classList.add('active') }, 5);  // 2ms delay to allow for css transition >:C
 }
 
 function popupDissmiss() {
@@ -42,5 +42,5 @@ function popupDissmiss() {
 
     document.querySelector("html").style.overflow = "auto";
     popupSelector.classList.remove('active');
-    setTimeout(function() { popupSelector.style.display = 'none'; }, 200);
+    setTimeout(() => { popupSelector.style.display = 'none'; }, 200);
 }
diff --git a/onlylegs/static/js/uploadTab.js b/onlylegs/static/js/uploadTab.js
index bab2291..1769fec 100644
--- a/onlylegs/static/js/uploadTab.js
+++ b/onlylegs/static/js/uploadTab.js
@@ -52,10 +52,10 @@ function tabDragStart(event) {
 
     uploadTab.classList.add("dragging");
 
-    document.addEventListener('touchmove', event => {
+    document.addEventListener('touchmove', moving => {
         if (uploadTab.classList.contains("dragging")) {
-            if (event.touches[0].clientY - offset >= 0) {
-                uploadTab.dataset.lastY = event.touches[0].clientY;
+            if (moving.touches[0].clientY - offset >= 0) {
+                uploadTab.dataset.lastY = moving.touches[0].clientY;
             } else {
                 uploadTab.dataset.lastY = offset;
             }
diff --git a/setup/runner.py b/setup/runner.py
index ab8b617..76a8a32 100644
--- a/setup/runner.py
+++ b/setup/runner.py
@@ -10,7 +10,8 @@ class OnlyLegs(Application):
     Gunicorn application
     """
 
-    def __init__(self, options={}):  # skipcq: PYL-W0231 # pylint: disable=W0231, W0102
+    # TODO: Make this not shit, thanks
+    def __init__(self, options={}):  # skipcq: PYL-W0231 # pylint: disable=W0231
         self.usage = None
         self.callable = None
         self.options = options