From 35fc990bc0e0d3a54b35bbcb8ddd9fc18d3dcce0 Mon Sep 17 00:00:00 2001 From: n07070 Date: Fri, 11 Mar 2022 18:36:36 +0100 Subject: [PATCH] Ajout d'un timer --- src/main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.py b/src/main.py index d76ee5b..fdf6f6c 100644 --- a/src/main.py +++ b/src/main.py @@ -11,6 +11,7 @@ from flask import Flask, request # Used for the web framework from printer import Printer # The wrapper for the printer class import toml # Used for the config file parsing import pprint +import time # Load the configuration file try: @@ -67,4 +68,5 @@ def api_index(): def api_print_sms(): texte = request.args.get("txt",type=str) app.logger.debug("Printing : " + texte) + time.sleep(10) return printer.print_sms(texte)