From da47b5bb3c3bd2364ac389e739b48c3f0f54fdaf Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Fri, 23 Mar 2018 01:18:43 -0700 Subject: [PATCH] Fix several small, embarassing typos. --- etiquette/objects.py | 2 +- etiquette/photodb.py | 2 +- etiquette/searchhelpers.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/etiquette/objects.py b/etiquette/objects.py index fcbe1af..6f44c9c 100644 --- a/etiquette/objects.py +++ b/etiquette/objects.py @@ -568,7 +568,7 @@ class Bookmark(ObjectBase): return '' if not isinstance(url, str): - raise TypeError('URL must be string, not %s' % type(title)) + raise TypeError('URL must be string, not %s' % type(url)) url = url.strip() diff --git a/etiquette/photodb.py b/etiquette/photodb.py index 9e0017d..99211f2 100644 --- a/etiquette/photodb.py +++ b/etiquette/photodb.py @@ -1089,7 +1089,7 @@ class PDBUtilMixin: exclude_filenames = self.config['digest_exclude_files'] return exclude_filenames - def _normalize_new_photo_kwargs(new_photo_kargs): + def _normalize_new_photo_kwargs(new_photo_kwargs): if 'commit' in new_photo_kwargs: new_photo_kwargs.pop('commit') if 'filepath' in new_photo_kwargs: diff --git a/etiquette/searchhelpers.py b/etiquette/searchhelpers.py index a124a5c..22e1599 100644 --- a/etiquette/searchhelpers.py +++ b/etiquette/searchhelpers.py @@ -142,7 +142,7 @@ def normalize_author(authors, photodb, warning_bag=None): for requested_author in authors: if isinstance(requested_author, objects.User): if requested_author.photodb == photodb: - user_ids.add(requested_author.id) + users.add(requested_author) else: requested_author = requested_author.username @@ -243,7 +243,7 @@ def normalize_mimetype(mimetype, warning_bag=None): Returns: A set of strings. ''' - return normalize_extensions(mimetype, warning_bag) + return normalize_extension(mimetype, warning_bag) def normalize_offset(offset, warning_bag=None): '''