aboutsummaryrefslogtreecommitdiff
path: root/sources
diff options
context:
space:
mode:
Diffstat (limited to 'sources')
-rw-r--r--sources/db/post_grades.sql3
1 files changed, 3 insertions, 0 deletions
diff --git a/sources/db/post_grades.sql b/sources/db/post_grades.sql
index 980df01..6846a4f 100644
--- a/sources/db/post_grades.sql
+++ b/sources/db/post_grades.sql
@@ -24,6 +24,9 @@ UPDATE keys SET grade='b' WHERE characters IS NULL;
-- All other keys not used at least 10 times with strange characters in them.
UPDATE keys SET grade='b' WHERE count_all < 10 AND characters='rest';
+-- All keys with less than three characters are bad
+UPDATE keys SET grade='b' WHERE length(key) < 3;
+
-- ============================================================================
-- GOOD KEYS: