diff --git a/copyparty/authsrv.py b/copyparty/authsrv.py index 0dc35e13..9c55b3ea 100644 --- a/copyparty/authsrv.py +++ b/copyparty/authsrv.py @@ -24,6 +24,7 @@ from .util import ( FAVICON_MIMES, HAVE_SQLITE3, IMPLICATIONS, + META_NOBOTS, MIMES, SQLITE_VER, UNPLICATIONS, diff --git a/copyparty/httpcli.py b/copyparty/httpcli.py index 576130ad..7bc09c16 100644 --- a/copyparty/httpcli.py +++ b/copyparty/httpcli.py @@ -48,7 +48,6 @@ from .util import ( FN_EMB, HAVE_SQLITE3, HTTPCODE, - META_NOBOTS, UTC, Garda, MultipartParser, diff --git a/copyparty/u2idx.py b/copyparty/u2idx.py index bad6598d..ca1014d1 100644 --- a/copyparty/u2idx.py +++ b/copyparty/u2idx.py @@ -303,7 +303,7 @@ class U2idx(object): is_size = False v = int(float(v) * 1024 * 1024) - if is_wark: + elif is_wark: is_wark = False v = v.strip("*") if len(v) > 16: