From d564354f82bb61ce1188220faf0efe4dee7e369c Mon Sep 17 00:00:00 2001 From: malaohu Date: Sun, 28 Mar 2021 21:54:01 +0800 Subject: [PATCH] Update app.py --- app.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app.py b/app.py index 1e28f29..537defd 100644 --- a/app.py +++ b/app.py @@ -105,10 +105,12 @@ def GenerateLicense(Type : LicenseType, Count : int, UserName : str, MajorVersio def get_lc(): name = request.args.get('name', '') version = request.args.get('ver', '') + count = int(request.args.get('count', '1')) + MajorVersion, MinorVersion = version.split('.')[0:2] MajorVersion = int(MajorVersion) MinorVersion = int(MinorVersion) - lc = GenerateLicense(LicenseType.Professional, 1, name, MajorVersion, MinorVersion) + lc = GenerateLicense(LicenseType.Professional, count, name, MajorVersion, MinorVersion) return lc