diff --git a/.bumpversion.cfg b/.bumpversion.cfg deleted file mode 100644 index d78ccd0..0000000 --- a/.bumpversion.cfg +++ /dev/null @@ -1,12 +0,0 @@ -[bumpversion] -current_version = 0.1.0 -commit = True -tag = True - -[bumpversion:file:pyproject.toml] -search = version = "{current_version}" -replace = version = "{new_version}" - -[bumpversion:file:ucast/__init__.py] -search = __version__ = "{current_version}" -replace = __version__ = "{new_version}" diff --git a/poetry.lock b/poetry.lock index dedcf83..91f67be 100644 --- a/poetry.lock +++ b/poetry.lock @@ -58,14 +58,6 @@ python-versions = "*" [package.dependencies] cffi = ">=1.0.0" -[[package]] -name = "bump2version" -version = "1.0.1" -description = "Version-bump your software with a single command!" -category = "dev" -optional = false -python-versions = ">=3.5" - [[package]] name = "certifi" version = "2022.5.18.1" @@ -776,7 +768,7 @@ websockets = "*" [metadata] lock-version = "1.1" python-versions = "^3.10" -content-hash = "41be11c588a5d47c4ddc2e06b5699ee9db0c3888e3576c0134d55e065f53cc0d" +content-hash = "a3da05c0c8552c9149eb04dee6e52c7f3fffd2de297a82595422511e3674f861" [metadata.files] asgiref = [ @@ -891,10 +883,6 @@ brotlicffi = [ {file = "brotlicffi-1.0.9.2-pp37-pypy37_pp73-win32.whl", hash = "sha256:7e72978f4090a161885b114f87b784f538dcb77dafc6602592c1cf39ae8d243d"}, {file = "brotlicffi-1.0.9.2.tar.gz", hash = "sha256:0c248a68129d8fc6a217767406c731e498c3e19a7be05ea0a90c3c86637b7d96"}, ] -bump2version = [ - {file = "bump2version-1.0.1-py2.py3-none-any.whl", hash = "sha256:37f927ea17cde7ae2d7baf832f8e80ce3777624554a653006c9144f8017fe410"}, - {file = "bump2version-1.0.1.tar.gz", hash = "sha256:762cb2bfad61f4ec8e2bdf452c7c267416f8c70dd9ecb1653fd0bbb01fa936e6"}, -] certifi = [ {file = "certifi-2022.5.18.1-py3-none-any.whl", hash = "sha256:f1d53542ee8cbedbe2118b5686372fb33c297fcd6379b050cca0ef13a597382a"}, {file = "certifi-2022.5.18.1.tar.gz", hash = "sha256:9c5705e395cd70084351dd8ad5c41e65655e08ce46f2ec9cf6c2c08390f71eb7"}, diff --git a/pyproject.toml b/pyproject.toml index 871092f..3556c9b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "ucast" -version = "0.1.0" +version = "0.0.1" description = "YouTube to Podcast converter" authors = ["Theta-Dev "] packages = [ @@ -40,7 +40,6 @@ honcho = "^1.1.0" pytest-mock = "^3.7.0" fakeredis = "^1.7.5" gunicorn = "^20.1.0" -bump2version = "^1.0.1" [tool.poetry.scripts] "ucast-manage" = "ucast_project.manage:main" diff --git a/ucast/__init__.py b/ucast/__init__.py index 52428bd..f102a9c 100644 --- a/ucast/__init__.py +++ b/ucast/__init__.py @@ -1,5 +1 @@ -__version__ = "0.1.0" - - -def template_context(request): - return {"version": __version__} +__version__ = "0.0.1" diff --git a/ucast/feed.py b/ucast/feed.py index c7dc07e..8861804 100644 --- a/ucast/feed.py +++ b/ucast/feed.py @@ -156,9 +156,9 @@ class UcastFeed(Feed): image_url=self.full_link_url(request, f"/files/avatar/{channel.slug}.jpg"), ) - for video in channel.video_set.filter(downloaded__isnull=False).order_by( - "-published" - )[: settings.FEED_MAX_ITEMS]: + for video in channel.video_set.order_by("-published")[ + : settings.FEED_MAX_ITEMS + ]: feed.add_item( title=video.title, link=video.get_absolute_url(), diff --git a/ucast/templates/bulma/base.html b/ucast/templates/bulma/base.html index 431b8ce..ac0a55e 100644 --- a/ucast/templates/bulma/base.html +++ b/ucast/templates/bulma/base.html @@ -22,7 +22,6 @@ diff --git a/ucast_project/settings.py b/ucast_project/settings.py index 24d64bb..0263581 100644 --- a/ucast_project/settings.py +++ b/ucast_project/settings.py @@ -126,7 +126,6 @@ TEMPLATES = [ "django.template.context_processors.request", "django.contrib.auth.context_processors.auth", "django.contrib.messages.context_processors.messages", - "ucast.template_context", ], }, },