Bump version to 0.8.1 and update localization files; modify tag processing to accept tags repository
All checks were successful
Gitea/kapitanbooru-uploader/pipeline/head This commit looks good

This commit is contained in:
Michał Leśniak 2025-03-27 22:00:38 +01:00
parent b1b8ed237e
commit df83c9dcdc
5 changed files with 8 additions and 8 deletions

View File

@ -32,7 +32,7 @@ class ImageBrowser(tk.Tk):
super().__init__()
self.title("Kapitanbooru Uploader")
self.geometry("900x600")
self.version = "0.8.0"
self.version = "0.8.1"
self.acknowledged_version = parse_version(self.version)
self.settings = Settings()

View File

@ -1,6 +1,6 @@
msgid ""
msgstr ""
"Project-Id-Version: Kapitanbooru Uploader 0.8.0\n"
"Project-Id-Version: Kapitanbooru Uploader 0.8.1\n"
"Report-Msgid-Bugs-To: kapitan@mlesniak.pl\n"
"POT-Creation-Date: 2025-03-27 20:47+0100\n"
"Content-Type: text/plain; charset=UTF-8\n"

View File

@ -1,6 +1,6 @@
msgid ""
msgstr ""
"Project-Id-Version: Kapitanbooru Uploader 0.8.0\n"
"Project-Id-Version: Kapitanbooru Uploader 0.8.1\n"
"Report-Msgid-Bugs-To: kapitan@mlesniak.pl\n"
"POT-Creation-Date: 2025-03-27 20:47+0100\n"
"Language: pl\n"

View File

@ -155,7 +155,7 @@ def extract_parameters(img: Image, file_path: str) -> str:
return parameters
def parse_parameters(param_str):
def parse_parameters(param_str, tags_repo: TagsRepo) -> str:
"""
Funkcja do parsowania zawartości pola 'parameters' z pliku PNG.
"""
@ -192,9 +192,9 @@ def parse_parameters(param_str):
# Usuń tagi tekstowe
tags = {tag for tag in tags if not tag.startswith("text:")}
# Pobierz tagi z bazy
character_tags = get_character_tags()
copyright_tags = get_copyright_tags()
artist_tags = get_artist_tags()
character_tags = get_character_tags(tags_repo)
copyright_tags = get_copyright_tags(tags_repo)
artist_tags = get_artist_tags(tags_repo)
# Dla tagów należących do kategorii Character
for tag in list(tags): # iterujemy po kopii zbioru

View File

@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "kapitanbooru-uploader"
version = "0.8.0"
version = "0.8.1"
description = "A GUI application for uploading images to KapitanBooru"
authors = [{ name = "Michał Leśniak", email = "kapitan@mlesniak.pl" }]
dependencies = [