From 24b3acb3deefa9d1ca3187829a70b7878f559860 Mon Sep 17 00:00:00 2001 From: Sam Willcocks Date: Fri, 18 Aug 2023 20:04:14 +0200 Subject: [PATCH] prep for selfservice --- flake.nix | 2 +- requirements.txt | 1 + templates/index.html | 48 +++++++++++++++++++++++++++++++------------- 3 files changed, 36 insertions(+), 15 deletions(-) diff --git a/flake.nix b/flake.nix index 7a88329..0d60743 100644 --- a/flake.nix +++ b/flake.nix @@ -23,7 +23,7 @@ packages.default = mach-lib.mkPython { requirements = builtins.readFile ./requirements.txt; }; - devShells.default = pkgs.devshell.mkShell {packages = with pkgs; [packages.default imagemagick resvg python3Packages.brother-ql];}; + devShells.default = pkgs.devshell.mkShell {packages = with pkgs; [packages.default imagemagick resvg];}; formatter = pkgs.alejandra; }); } diff --git a/requirements.txt b/requirements.txt index eabb00d..47869be 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,3 +2,4 @@ quart pyinstaller aiohttp aiofiles +brother_ql diff --git a/templates/index.html b/templates/index.html index 6365d0e..dea757e 100644 --- a/templates/index.html +++ b/templates/index.html @@ -20,28 +20,48 @@ -

ISO7010 Warning Stickers On Demand

+
+

ISO7010 Warning Stickers On Demand

+

Brought to you by @samw@hacksrus.xyz. Label tape donations received with...

+ +
{% for section, ws in ws.items() %}

{{ section }}

{% for w in ws %} -
+
-
-
- {{ w.name }} -
-
- {{ counts.get(w.name, 0) }} -
-
- - -
-
+
{{ w.name }}
+
{% endfor %}
{% endfor %} +