Fix spelling of BIOGRAPH
authorKarl Pinc <kop@karlpinc.com>
Mon, 5 Aug 2024 05:09:32 +0000 (01:09 -0400)
committerKarl Pinc <kop@karlpinc.com>
Mon, 5 Aug 2024 05:09:32 +0000 (01:09 -0400)
src/pgwui_upcen/views/upcen.py

index b186b25ebbf77186e5643a4a4095ea0c8d1671a1..82c80b8ed9e199dde241b1e15f5d8250c8d6bda8 100644 (file)
@@ -37,7 +37,7 @@ import markupsafe
 import psycopg
 
 GROUP_EXISTS_QUERY = 'SELECT 1 FROM groups WHERE groups.gid = %s'
-SNAME_EXISTS_QUERY = 'SELECT 1 FROM biography WHERE biography.sname = %s'
+SNAME_EXISTS_QUERY = 'SELECT 1 FROM biograph WHERE biograph.sname = %s'
 INSERT_STMT = ('INSERT INTO census (sname, date, grp, status, cen)'
                ' values(%s, %s, %s, %s, TRUE);')
 
@@ -65,8 +65,8 @@ class SaveUCLine(pgwui_core.core.DataLineProcessor,
         if self.cur.fetchone() is None:
             raise upcen_ex.UnknownSnameError(
                 udl.lineno,
-                'The first column of each line must be a BIOGRAPHY.Sname',
-                descr=f'The BIOGRAPHY.Sname ({sname}) does not exist',
+                'The first column of each line must be a BIOGRAPH.Sname',
+                descr=f'The BIOGRAPH.Sname ({sname}) does not exist',
                 data=udl.raw)
         return sname