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);')
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