From 835e24a027e48c292cec47fe07902be70e4af973 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Sun, 20 Aug 2023 03:54:13 +0000 Subject: [PATCH] Truncate printer job name to 100 chars --- apiserver/apiserver/api/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apiserver/apiserver/api/views.py b/apiserver/apiserver/api/views.py index 57a3900..74f78e9 100644 --- a/apiserver/apiserver/api/views.py +++ b/apiserver/apiserver/api/views.py @@ -1605,7 +1605,7 @@ class ProtocoinViewSet(Base): memo = 'Protocoin - Purchase spent ₱ {} printing {}'.format( total_cost, - request.data['job_name'], + request.data['job_name'][:100], ) tx = models.Transaction.objects.create(