Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Config get_body_args #8737

Merged
merged 66 commits into from
Apr 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
66 commits
Select commit Hold shift + click to select a range
5cf05fb
edit dir dirty fix
BKSteve Mar 3, 2024
81dd622
Merge branch 'develop' into editshow-return
BKSteve Mar 6, 2024
772db48
get args
BKSteve Mar 6, 2024
079279e
Merge remote-tracking branch 'origin/develop' into editshow-return
BKSteve Mar 8, 2024
1f7b792
Merge branch 'develop' into editshow-return
BKSteve Mar 9, 2024
aba310b
making an Edit mass mess
BKSteve Mar 9, 2024
a35562a
e,d,k explicit
BKSteve Mar 9, 2024
093b838
massUpdate sticky headers
BKSteve Mar 9, 2024
0fd5e61
massUpdate sticky headers
BKSteve Mar 9, 2024
ce1c126
Merge remote-tracking branch 'origin/editshow-return' into editshow-r…
BKSteve Mar 9, 2024
d2b985f
init super ??
BKSteve Mar 9, 2024
a23cfed
Merge remote-tracking branch 'origin/develop' into editshow-return
BKSteve Mar 10, 2024
e0f2be8
sort the exceptions list
BKSteve Mar 10, 2024
7edd709
sort the exceptions list note
BKSteve Mar 10, 2024
672e1fa
Merge remote-tracking branch 'origin/develop' into editshow-return
BKSteve Mar 12, 2024
9be059e
Merge remote-tracking branch 'origin/develop' into editshow-return
BKSteve Mar 13, 2024
6e7f01f
kill off init
BKSteve Mar 13, 2024
5230e8e
saveGeneral get_arg
BKSteve Mar 13, 2024
e77988d
saveGeneral get_arg
BKSteve Mar 13, 2024
e2f2cd7
logging relocate
BKSteve Mar 14, 2024
6f061bd
search page
BKSteve Mar 14, 2024
9f6cb84
postprocessing page
BKSteve Mar 14, 2024
ccdd194
postprocessing page
BKSteve Mar 14, 2024
31c7b7d
subtitles page
BKSteve Mar 14, 2024
ed02104
notifications page
BKSteve Mar 14, 2024
8be8350
anime page
BKSteve Mar 14, 2024
ac7d762
Merge remote-tracking branch 'origin/develop' into config_args
BKSteve Mar 14, 2024
e32ed31
addshow arg
BKSteve Mar 15, 2024
8c8542c
addshow arg
BKSteve Mar 15, 2024
462829b
addshow arg
BKSteve Mar 15, 2024
76d93ad
Merge remote-tracking branch 'origin/config_args' into config_args
BKSteve Mar 16, 2024
d6261f6
post processing arg
BKSteve Mar 17, 2024
20ff20a
newShow arg
BKSteve Mar 17, 2024
6825e3d
Merge remote-tracking branch 'origin/develop' into config_args
BKSteve Mar 26, 2024
2a8864c
logging own tab
BKSteve Mar 26, 2024
b908790
logging tab location
BKSteve Mar 26, 2024
5ac8320
logging notify
BKSteve Mar 26, 2024
648ff95
Merge remote-tracking branch 'origin/develop' into config_args
BKSteve Mar 29, 2024
29d3b28
schedule show custom name
BKSteve Mar 29, 2024
7517e22
comment fix
BKSteve Apr 6, 2024
a02e23c
Merge remote-tracking branch 'refs/remotes/origin/develop' into confi…
BKSteve Apr 10, 2024
5d17fcc
Fix some calls
BKSteve Apr 10, 2024
53c43b6
deprication warning
BKSteve Apr 12, 2024
517103c
poe format
BKSteve Apr 12, 2024
17d23e1
pylint else timeout
BKSteve Apr 12, 2024
7db4013
pylint else elseif
BKSteve Apr 12, 2024
80f7928
rabbit logger
BKSteve Apr 12, 2024
8c6ed11
Merge branch 'refs/heads/develop' into config_args
BKSteve Apr 12, 2024
b91a100
cleaning
BKSteve Apr 12, 2024
8b05a01
validators
BKSteve Apr 12, 2024
e877fef
valid_url and validators to helper.common
BKSteve Apr 13, 2024
af70058
Pylint relative import beyond top-level package
BKSteve Apr 13, 2024
15c077e
Rabbit identified items for clarity
BKSteve Apr 14, 2024
4cf292d
absolute paths PEP 8
BKSteve Apr 14, 2024
4398821
Pylint Exception order
BKSteve Apr 14, 2024
cae867b
clean up
BKSteve Apr 14, 2024
d63ebe5
Merge remote-tracking branch 'origin/config_args' into config_args
BKSteve Apr 15, 2024
a293f54
mako indents
BKSteve Apr 17, 2024
1dc6c0d
Calendar tz calc display
BKSteve Apr 19, 2024
4dc1c2f
Merge branch 'refs/heads/develop' into config_args
BKSteve Apr 19, 2024
7bf8a33
calendar change revert
BKSteve Apr 22, 2024
9f49538
ruff cleanup
BKSteve Apr 27, 2024
8c56151
ruff setting
BKSteve Apr 27, 2024
aa9db9c
format
BKSteve Apr 27, 2024
877fc97
ruff builtin
BKSteve Apr 27, 2024
b769660
Merge branch 'develop' into config_args
miigotu Apr 29, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion SickChill.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ def install_file(self, file: Path):

updater = UpdateManager()
if not updater.updater:
self.log(f"Unable to install files, the updater is disabled", 1)
self.log("Unable to install files, the updater is disabled", 1)
return False

self.log(f"Creating a backup of your database and config before installing {file.name}")
Expand Down
7 changes: 3 additions & 4 deletions frontend/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@
from logging.config import dictConfig

from flask import Flask

from .config import blueprint as config_blueprint
from .movies import blueprint as movies_blueprint
from .shows import blueprint as shows_blueprint
from frontend.config import blueprint as config_blueprint
from frontend.movies import blueprint as movies_blueprint
from frontend.shows import blueprint as shows_blueprint


class FlaskServer(threading.Thread):
Expand Down
2 changes: 1 addition & 1 deletion frontend/config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
This module implements the web interface for the SickChill configuration. It provides a blueprint for handling configuration-related requests.
"""

from .views import blueprint
from frontend.config.views import blueprint
BKSteve marked this conversation as resolved.
Show resolved Hide resolved
2 changes: 1 addition & 1 deletion frontend/config/views.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from flask import Blueprint, render_template

from sickchill import logger, settings
from sickchill import logger

blueprint = Blueprint("config", __name__, template_folder="templates", static_folder="static", url_prefix="/config")

Expand Down
2 changes: 1 addition & 1 deletion frontend/movies/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
This module implements the web interface for the sickchill movies media type
"""

from .views import blueprint
from frontend.movies.views import blueprint
BKSteve marked this conversation as resolved.
Show resolved Hide resolved
2 changes: 1 addition & 1 deletion frontend/shows/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
This module implements the web interface for the sickchill shows media type
"""

from .views import blueprint
from frontend.shows.views import blueprint
BKSteve marked this conversation as resolved.
Show resolved Hide resolved
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,10 @@ target_version = ['py310']
include = '\.pyi?$'
exclude = 'contrib/scmaintools|\.venv|venv|\.git|\.hg|\.mypy_cache|\.tox|_build|buck-out|build|dist|node_modules|bower_components'

[tool.ruff]
line-length = 160
builtins = ["_"]

[tool.poe.tasks]
pytest = "pytest"
yarn = "yarn"
Expand Down
2 changes: 1 addition & 1 deletion sickchill/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

maybe_daemonize()

from .show.indexers import indexer, ShowIndexer
from sickchill.show.indexers import indexer, ShowIndexer
BKSteve marked this conversation as resolved.
Show resolved Hide resolved
8 changes: 4 additions & 4 deletions sickchill/adba/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
from time import localtime, sleep, strftime, time
from types import FunctionType, MethodType

from .aniDBAbstracter import Anime, Episode
from .aniDBcommands import (
from sickchill.adba.aniDBAbstracter import Anime, Episode
BKSteve marked this conversation as resolved.
Show resolved Hide resolved
from sickchill.adba.aniDBcommands import (
AnimeCommand,
AuthCommand,
BuddyAcceptCommand,
Expand Down Expand Up @@ -40,8 +40,8 @@
VersionCommand,
VoteCommand,
)
from .aniDBerrors import AniDBBannedError, AniDBCommandTimeoutError, AniDBError, AniDBIncorrectParameterError, AniDBInternalError
from .aniDBlink import AniDBLink
from sickchill.adba.aniDBerrors import AniDBBannedError, AniDBCommandTimeoutError, AniDBError, AniDBIncorrectParameterError, AniDBInternalError
BKSteve marked this conversation as resolved.
Show resolved Hide resolved
from sickchill.adba.aniDBlink import AniDBLink

version = 100

Expand Down
10 changes: 5 additions & 5 deletions sickchill/adba/aniDBAbstracter.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
import string
from pathlib import Path

from . import aniDBfileInfo as fileInfo
from .aniDBerrors import AniDBIncorrectParameterError
from .aniDBfileInfo import read_anidb_xml
from .aniDBmapper import AniDBMapper
from .aniDBtvDBmaper import TvDBMap
from sickchill.adba import aniDBfileInfo as fileInfo
from sickchill.adba.aniDBerrors import AniDBIncorrectParameterError
from sickchill.adba.aniDBfileInfo import read_anidb_xml
from sickchill.adba.aniDBmapper import AniDBMapper
from sickchill.adba.aniDBtvDBmaper import TvDBMap


class AniDBabstractObject(object):
Expand Down
4 changes: 2 additions & 2 deletions sickchill/adba/aniDBcommands.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from threading import Lock

from .aniDBerrors import AniDBIncorrectParameterError, AniDBInternalError
from .aniDBresponses import MylistResponse, NoSuchFileResponse, NoSuchMylistEntryResponse, ProducerResponse
from sickchill.adba.aniDBerrors import AniDBIncorrectParameterError, AniDBInternalError
from sickchill.adba.aniDBresponses import MylistResponse, NoSuchFileResponse, NoSuchMylistEntryResponse, ProducerResponse


class Command(object):
Expand Down
4 changes: 2 additions & 2 deletions sickchill/adba/aniDBfileInfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ def md4_hash(data):
hashes = [md4_hash(data).digest() for data in a]
if len(hashes) == 1:
return hashes[0].hex()
else:
return md4_hash(reduce(lambda b, c: b + c, hashes, b"")).hexdigest()

return md4_hash(reduce(lambda b, c: b + c, hashes, b"")).hexdigest()


def download_file(url, filename: Path):
Expand Down
10 changes: 5 additions & 5 deletions sickchill/adba/aniDBlink.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
from time import sleep, time
from typing import Any, Dict

from .aniDBcommands import Command
from .aniDBerrors import AniDBBannedError, AniDBError, AniDBMustAuthError, AniDBPacketCorruptedError
from .aniDBresponses import ResponseResolver
from sickchill.adba.aniDBcommands import Command
from sickchill.adba.aniDBerrors import AniDBBannedError, AniDBError, AniDBMustAuthError, AniDBPacketCorruptedError
from sickchill.adba.aniDBresponses import ResponseResolver


class AniDBLink(threading.Thread):
Expand Down Expand Up @@ -181,8 +181,8 @@ def _cmd_queue(self, command):
def _cmd_dequeue(self, resp) -> Command:
if not resp.restag:
return None
else:
return self.cmd_queue.pop(resp.restag)

return self.cmd_queue.pop(resp.restag)

def _delay(self):
return self.delay < 2.1 and 2.1 or self.delay
Expand Down
2 changes: 1 addition & 1 deletion sickchill/adba/aniDBmapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def _getBitChain(self, map, wanted):
"""Return an hex string with the correct bit set corresponding to the wanted fields in the map"""
bit = 0
for index, field in enumerate(map):
if field in wanted and not field in self.blacklist:
if field in wanted and field not in self.blacklist:
BKSteve marked this conversation as resolved.
Show resolved Hide resolved
bit = bit ^ (1 << len(map) - index - 1)

bit = str(hex(bit)).lstrip("0x").rstrip("L")
Expand Down
2 changes: 1 addition & 1 deletion sickchill/adba/aniDBresponses.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from .aniDBmapper import AniDBMapper
from sickchill.adba.aniDBmapper import AniDBMapper


class ResponseResolver:
Expand Down
4 changes: 2 additions & 2 deletions sickchill/adba/aniDBtvDBmaper.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from pathlib import Path

from . import aniDBfileInfo as fileInfo
from sickchill.adba import aniDBfileInfo as fileInfo


class TvDBMap(object):
Expand All @@ -20,7 +20,7 @@ def _get_x_for_y(self, xValue, x, y):
try:
if anime.get(x, False) == xValue:
return int(anime.get(y, 0))
except ValueError as error:
except ValueError:
continue
return 0

Expand Down
1 change: 1 addition & 0 deletions sickchill/gui/slick/js/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -3391,6 +3391,7 @@ const SICKCHILL = {
columnSelector_columns: { // eslint-disable-line camelcase
12: false,
},
stickyHeaders_offset: 50, // eslint-disable-line camelcase
filter_cssFilter: 'text-center text-capitalize', // eslint-disable-line camelcase
filter_hideFilters: false, // eslint-disable-line camelcase
filter_ignoreCase: true, // eslint-disable-line camelcase
Expand Down
2 changes: 1 addition & 1 deletion sickchill/gui/slick/js/core.min.js

Large diffs are not rendered by default.

Loading
Loading