diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index 09e0ef1..b6f68bf 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -22,4 +22,4 @@ jobs: pip install pylint-flask - name: Analysing the code with pylint run: | - pylint --fail-under=9.80 --load-plugins pylint_flask --max-line-length=410 $(git ls-files '*.py' ':!static') --disable C0301,C0116,C0114,E0602,C0302,C0115,C0103,W0401,C0209,R0912,R1702,W0614,E1101,C0303 + pylint --fail-under=9.80 --load-plugins pylint_flask --max-line-length=410 $(git ls-files '*.py' ':!static') --disable C0301,C0116,C0114,E0602,C0302,C0115,C0103,W0401,C0209,R0912,R1702,W0614,E1101,C0303,C0121 diff --git a/app.py b/app.py index 72ba5d0..00e232c 100644 --- a/app.py +++ b/app.py @@ -336,16 +336,6 @@ def index_page(): rv = sorted(rv, key=itemgetter('id'), reverse=True) - ''' - # Random chance for a video to swap with another video within 5 positions of itself - for i in range(len(rv)): - if random.random() < 0.2: # 20% chance to swap - # Limit swap range to be within 5 positions - swap_index = random.randint(max(i - 5, 0), min(i + 5, len(rv) - 1)) - if swap_index != i: # Avoid swapping with the same item - rv[i], rv[swap_index] = rv[swap_index], rv[i] - ''' - grouped_by_date = defaultdict(lambda: defaultdict(list)) for video in rv: