--> -->
 
 
ProgrammingError
Python 3.5.3: /usr/bin/python3
Mon Oct 22 16:19:23 2018

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

 /srv/udd.debian.org/udd/web/cgi-bin/wnpp_packaged.cgi in ()
     64 conn = connect(DATABASE)
     65 cur = conn.cursor()
=>   66 cur.execute(query)
     67 rows = cur.fetchall()
     68 cur.close()
cur = <cursor object at 0x7fb6c67584f8; closed: 0>, cur.execute = <built-in method execute of psycopg2.extensions.cursor object>, query = 'WITH qabugs AS (\n SELECT substring(t... FROM upload_history)\n ORDER BY id'

ProgrammingError: more than one row returned by a subquery used as an expression
      args = ('more than one row returned by a subquery used as an expression\n',)
      cursor = <cursor object at 0x7fb6c67584f8; closed: 0>
      diag = <psycopg2.extensions.Diagnostics object>
      pgcode = '21000'
      pgerror = 'ERROR: more than one row returned by a subquery used as an expression\n'
      with_traceback = <built-in method with_traceback of ProgrammingError object>