From 460b68cbafeb179c8af203b829de3f3337f87078 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Sat, 12 Nov 2022 08:08:38 +0300 Subject: Accept plain text (text/plain) files --- qc_app/entry.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'qc_app/entry.py') diff --git a/qc_app/entry.py b/qc_app/entry.py index efcaf4e..2c4600d 100644 --- a/qc_app/entry.py +++ b/qc_app/entry.py @@ -38,8 +38,9 @@ def errors(rqst) -> Tuple[str, ...]: ( ("Invalid file! Expected a tab-separated-values file, or a zip " "file of the a tab-separated-values file."),) - if text_file.mimetype - not in ("text/tab-separated-values", "application/zip") + if text_file.mimetype not in ( + "text/plain", "text/tab-separated-values", + "application/zip") else tuple()) return ( -- cgit v1.2.3