Compare commits

..

No commits in common. "71725c7a29870e56d0678333c1d9e0ae9670c07c" and "f79220515bdddcbe03f68d0e71c576560bb04c4a" have entirely different histories.

7 changed files with 6 additions and 37 deletions

View file

@ -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}"

14
poetry.lock generated
View file

@ -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"},

View file

@ -1,6 +1,6 @@
[tool.poetry]
name = "ucast"
version = "0.1.0"
version = "0.0.1"
description = "YouTube to Podcast converter"
authors = ["Theta-Dev <t.testboy@gmail.com>"]
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"

View file

@ -1,5 +1 @@
__version__ = "0.1.0"
def template_context(request):
return {"version": __version__}
__version__ = "0.0.1"

View file

@ -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(),

View file

@ -22,7 +22,6 @@
<div class="navbar-brand">
<a class="navbar-item" href="/">
<img src="{% static 'ucast/logo_dark.svg' %}">
<span class="ml-2">v{{ version }}</span>
</a>
</div>

View file

@ -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",
],
},
},