Topic: Next badges tab ERROR

On tab "Next badges" is error:

MOD_PYTHON ERROR

ProcessId:      8356
Interpreter:    'signature.statseb.fr'

ServerName:     'signature.statseb.fr'
DocumentRoot:   '/web/sebastien/Stats_users/html'

URI:            '/next_badges.py'
Location:       None
Directory:      '/web/sebastien/Stats_users/html/'
Filename:       '/web/sebastien/Stats_users/html/next_badges.py'
PathInfo:       ''

Phase:          'PythonHandler'
Handler:        'mod_python.publisher'

Traceback (most recent call last):

  File "/usr/lib/python2.7/dist-packages/mod_python/importer.py", line 1537, in HandlerDispatch
    default=default_handler, arg=req, silent=hlist.silent)

  File "/usr/lib/python2.7/dist-packages/mod_python/importer.py", line 1229, in _process_target
    result = _execute_target(config, req, object, arg)

  File "/usr/lib/python2.7/dist-packages/mod_python/importer.py", line 1128, in _execute_target
    result = object(arg)

  File "/usr/lib/python2.7/dist-packages/mod_python/publisher.py", line 213, in handler
    published = publish_object(req, object)

  File "/usr/lib/python2.7/dist-packages/mod_python/publisher.py", line 425, in publish_object
    return publish_object(req,util.apply_fs_data(object, req.form, req=req))

  File "/usr/lib/python2.7/dist-packages/mod_python/util.py", line 554, in apply_fs_data
    return object(**args)

  File "/web/sebastien/Stats_users/html/next_badges.py", line 1357, in index
    cur.execute('SELECT total FROM users_sous_projet WHERE projet=195 and userid='+str(userid)+' and sous_projet="'+dict_equiv_sp[sp]+'"')

KeyError: 'srbase_GPU72'


MODULE CACHE DETAILS

Accessed:       Sun Mar 22 22:59:00 2020
Generation:     3

_mp_b0806b6c9e1ad12476d1f082bc16ac90 {
  FileName:     '/web/sebastien/Stats_users/html/next_badges.py'
  Instance:     1
  Generation:   3
  Modified:     Mon Feb 17 20:36:31 2020
  Imported:     Sun Mar 22 22:57:40 2020
}

https://signature.statseb.fr/sig-2481.png

Re: Next badges tab ERROR

MOD_PYTHON ERROR

ProcessId:      16557
Interpreter:    'signature.statseb.fr'

ServerName:     'signature.statseb.fr'
DocumentRoot:   '/web/sebastien/Stats_users/html'

URI:            '/next_badges.py'
Location:       None
Directory:      '/web/sebastien/Stats_users/html/'
Filename:       '/web/sebastien/Stats_users/html/next_badges.py'
PathInfo:       ''

Phase:          'PythonHandler'
Handler:        'mod_python.publisher'

Traceback (most recent call last):

  File "/usr/lib/python2.7/dist-packages/mod_python/importer.py", line 1537, in HandlerDispatch
    default=default_handler, arg=req, silent=hlist.silent)

  File "/usr/lib/python2.7/dist-packages/mod_python/importer.py", line 1229, in _process_target
    result = _execute_target(config, req, object, arg)

  File "/usr/lib/python2.7/dist-packages/mod_python/importer.py", line 1128, in _execute_target
    result = object(arg)

  File "/usr/lib/python2.7/dist-packages/mod_python/publisher.py", line 213, in handler
    published = publish_object(req, object)

  File "/usr/lib/python2.7/dist-packages/mod_python/publisher.py", line 425, in publish_object
    return publish_object(req,util.apply_fs_data(object, req.form, req=req))

  File "/usr/lib/python2.7/dist-packages/mod_python/util.py", line 554, in apply_fs_data
    return object(**args)

  File "/web/sebastien/Stats_users/html/next_badges.py", line 1564, in index
    doc=xml.dom.minidom.parseString(source)

  File "/usr/lib/python2.7/xml/dom/minidom.py", line 1928, in parseString
    return expatbuilder.parseString(string)

  File "/usr/lib/python2.7/xml/dom/expatbuilder.py", line 940, in parseString
    return builder.parseString(string)

  File "/usr/lib/python2.7/xml/dom/expatbuilder.py", line 223, in parseString
    parser.Parse(string, True)

ExpatError: mismatched tag: line 94, column 2


MODULE CACHE DETAILS

Accessed:       Wed Apr  8 17:04:43 2020
Generation:     1

_mp_b0806b6c9e1ad12476d1f082bc16ac90 {
  FileName:     '/web/sebastien/Stats_users/html/next_badges.py'
  Instance:     1 [IMPORT]
  Generation:   2
  Modified:     Tue Mar 24 13:20:22 2020
  Imported:     Wed Apr  8 17:04:43 2020
}
https://signature.statseb.fr/sig-2481.png

Re: Next badges tab ERROR

Due to the change from 'GPU72' to 'TP' there's still an error in Next Badges. The view says I need 10,000 credits for a Bronze Badge, while I hold a Amethyst Badge.

http://signature.statseb.fr/sig-1455.png

Re: Next badges tab ERROR

Fixed

http://signature.statseb.fr/sig-1.gif

Re: Next badges tab ERROR

Next badges -> next error