From bdb977238caca88693a3c5d299c2459165d7a1e7 Mon Sep 17 00:00:00 2001 From: Shivam Gutgutia Date: Sun, 24 Dec 2023 01:35:30 +0530 Subject: [PATCH] add:auto increment feature for suffix --- utils/vcfGenerator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/vcfGenerator.py b/utils/vcfGenerator.py index 30e9796..1025e18 100644 --- a/utils/vcfGenerator.py +++ b/utils/vcfGenerator.py @@ -20,7 +20,7 @@ def generateVcard(row, headers, vCards): family=row.get(headers.get("Last Name",""),""), given=row.get(headers.get("First Name",""),""), additional=row.get(headers.get("Middle Name",""),""), - suffix=request.form.get("Suffix",""), + suffix=request.form.get("Suffix","")+" "+str(row.name+1) if request.form.get("autoIncrement","") == "true" else request.form.get("Prefix",""), prefix=request.form.get("Prefix","") )