Skip to content

Commit

Permalink
v2.2.3 - Bump hypercorn[trio] and minor type fix
Browse files Browse the repository at this point in the history
  • Loading branch information
CoolCat467 committed Jan 9, 2024
1 parent b26fa03 commit 58801ac
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ classifiers = [
]
keywords = ["scanner", "sane", "server", "frontend"]
dependencies = [
"hypercorn[trio]~=0.15.0",
"hypercorn[trio]~=0.16.0",
"Pillow~=10.2.0",
"python-sane~=2.9.1",
"quart~=0.19.4",
Expand Down
6 changes: 4 additions & 2 deletions src/sanescansrv/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

__title__ = "Sane Scanner Web Server"
__author__ = "CoolCat467"
__version__ = "2.2.2"
__version__ = "2.2.3"
__license__ = "GPLv3"


Expand Down Expand Up @@ -704,7 +704,9 @@ def run() -> None:
config.write(config_file)

print(f"Default Printer: {target}\nPort: {port}\nHostname: {hostname}")
print(f"PIL Image Version: {Image.__version__}\n")
pil_version = getattr(Image, "__version__", None)
assert pil_version is not None, "PIL should have a version!"
print(f"PIL Image Version: {pil_version}\n")

if target == "None":
print("No default device in config file.")
Expand Down
2 changes: 1 addition & 1 deletion src/sanescansrv/templates/error_page.html.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<footer>
<i>If you're reading this, the web server was installed correctly.™</i>
<hr>
<p>Sane Scanner Web Server v2.2.2 © CoolCat467</p>
<p>Sane Scanner Web Server v2.2.3 © CoolCat467</p>
</footer>
</body>
</html>
2 changes: 1 addition & 1 deletion src/sanescansrv/templates/root_get.html.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
<footer>
<i>If you're reading this, the web server was installed correctly.™</i>
<hr>
<p>Sane Scanner Web Server v2.2.2 © CoolCat467</p>
<p>Sane Scanner Web Server v2.2.3 © CoolCat467</p>
</footer>
</body>
</html>
2 changes: 1 addition & 1 deletion src/sanescansrv/templates/scan-status_get.html.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<footer>
<i>If you're reading this, the web server was installed correctly.™</i>
<hr>
<p>Sane Scanner Web Server v2.2.2 © CoolCat467</p>
<p>Sane Scanner Web Server v2.2.3 © CoolCat467</p>
</footer>
</body>
</html>
2 changes: 1 addition & 1 deletion src/sanescansrv/templates/scanners_get.html.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<footer>
<i>If you're reading this, the web server was installed correctly.™</i>
<hr>
<p>Sane Scanner Web Server v2.2.2 © CoolCat467</p>
<p>Sane Scanner Web Server v2.2.3 © CoolCat467</p>
</footer>
</body>
</html>
2 changes: 1 addition & 1 deletion src/sanescansrv/templates/settings_get.html.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<footer>
<i>If you're reading this, the web server was installed correctly.™</i>
<hr>
<p>Sane Scanner Web Server v2.2.2 © CoolCat467</p>
<p>Sane Scanner Web Server v2.2.3 © CoolCat467</p>
</footer>
</body>
</html>

0 comments on commit 58801ac

Please sign in to comment.