From bdd9115f70fe293f0ad4980200c1463013107299 Mon Sep 17 00:00:00 2001 From: augustin64 Date: Sun, 19 Nov 2023 19:03:56 +0100 Subject: [PATCH] Add qrcode requirement --- requirements.txt | 3 ++- scripts/hooks/v1.py | 5 ++++- scripts/migration.py | 5 ++++- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/requirements.txt b/requirements.txt index 28b08ec..087e383 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,4 @@ flask google -colorama \ No newline at end of file +colorama +qrcode \ No newline at end of file diff --git a/scripts/hooks/v1.py b/scripts/hooks/v1.py index 2e558c9..866ebd6 100644 --- a/scripts/hooks/v1.py +++ b/scripts/hooks/v1.py @@ -130,4 +130,7 @@ def mass_rename(): ) def base_url_parameter_added(): - print(f"{Style.BRIGHT}{Fore.YELLOW}The parameter BASE_URL has been added, reference your front url in it{Style.RESET_ALL}") \ No newline at end of file + print(f"{Style.BRIGHT}{Fore.YELLOW}The parameter BASE_URL has been added, reference your front url in it{Style.RESET_ALL}") + +def install_qrcode(): + os.system("pip install qrcode -qq") \ No newline at end of file diff --git a/scripts/migration.py b/scripts/migration.py index 81e6192..78cad01 100644 --- a/scripts/migration.py +++ b/scripts/migration.py @@ -36,7 +36,10 @@ hooks = [ ("v1.4.0", [ ("Change all albums & groupes uuids", v1.mass_rename), ("Warn new parameter", v1.base_url_parameter_added) - ]) + ]), + ("v1.4.1", [ + ("Install qrcode", v1.install_qrcode) + ]), ]