~kf5jwc/sms-printer

0b4fe8aa209e5fe2cc25185c466c27c6e5367576 — Kyle Jones 1 year, 8 months ago 27fed87
Tiny amount of typing
2 files changed, 2 insertions(+), 2 deletions(-)

M sms_printer/application.py
M sms_printer/utils.py
M sms_printer/application.py => sms_printer/application.py +1 -1
@@ 11,7 11,7 @@ logging.basicConfig(level=logging.DEBUG)


@APP.route("/", methods=["GET"])
def main():
def main() -> Response:
    return Response(status=204)



M sms_printer/utils.py => sms_printer/utils.py +1 -1
@@ 12,7 12,7 @@ from .config import Environment
ENV = Environment()


def suffix(length=ENV.ARCHIVE_SUFFIX_LENGTH, chars=ascii_uppercase + digits):
def suffix(length=ENV.ARCHIVE_SUFFIX_LENGTH, chars=ascii_uppercase + digits) -> str:
    "Random suffix string"
    return "".join(rand_choice(chars) for x in range(length))