~sircmpwn/sr.ht-dev

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1

[PATCH meta.sr.ht] Fix grammar and wording on user validity messages

Details
Message ID
<20200724224026.383227-1-chris@vittal.dev>
DKIM signature
pass
Download raw message
Patch: +3 -3
---
 metasrht/types/user.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/metasrht/types/user.py b/metasrht/types/user.py
index b54255e..a4836d3 100644
--- a/metasrht/types/user.py
+++ b/metasrht/types/user.py
@@ -87,13 +87,13 @@ class User(Base, UserMixin):
        bio = valid.optional("bio", self.bio)

        valid.expect(not url or 0 <= len(url) <= 256,
                "URL must fewer than 256 characters.", "url")
                "URL must have no more than 256 characters.", "url")
        valid.expect(not url or valid_url(url),
                "URL must be a valid http or https URL", "url")
        valid.expect(not location or 0 <= len(location) <= 256,
                "Location must fewer than 256 characters.", "location")
                "Location must have no more than 256 characters.", "location")
        valid.expect(not bio or 0 <= len(bio) <= 4096,
                "Bio must fewer than 4096 characters.", "bio")
                "Bio must have no more than 4096 characters.", "bio")

        if not valid.ok:
            return
-- 
2.27.0
Details
Message ID
<C4HNHIJPVL4J.2Y03XC1TLWK4D@homura>
In-Reply-To
<20200724224026.383227-1-chris@vittal.dev> (view parent)
DKIM signature
pass
Download raw message
Thanks!

To git@git.sr.ht:~sircmpwn/meta.sr.ht
   169c7ec..5595fbc  master -> master
Reply to thread Export thread (mbox)