Project

General

Profile

Bug #44465

passerelle-montpellier-sig, tri des résultats vs python3

Added by Frédéric Péters 10 days ago. Updated 10 days ago.

Status:
Résolu (à déployer)
Priority:
Normal
Target version:
-
Start date:
26 Jun 2020
Due date:
% Done:

0%

Patch proposed:
Yes
Planning:
No

Description

File "/usr/lib/python3/dist-packages/passerelle_montpellier_sig/views.py" in get
  157.         voies.sort(lambda x, y: cmp(x['id'], y['id']))

Exception Type: TypeError at /montpellier-sig/hebe/voies/34172
Exception Value: must use keyword argument for key function

0001-misc-sort-using-key-parameter-44465.patch View (1.75 KB) Frédéric Péters, 26 Jun 2020 06:39 AM

0001-misc-sort-using-key-parameter-44465.patch View (1.75 KB) Frédéric Péters, 26 Jun 2020 06:40 AM

History

#1 Updated by Frédéric Péters 10 days ago

#3 Updated by Frédéric Péters 10 days ago

(posé en prod)

#4 Updated by Serghei Mihai 10 days ago

  • Status changed from Solution proposée to Solution validée
  • Assignee set to Frédéric Péters

#5 Updated by Frédéric Péters 10 days ago

  • Status changed from Solution validée to Résolu (à déployer)
commit fb51303820d448d4025cf899e8bf6b7af8b0ed2a
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Fri Jun 26 06:38:22 2020 +0200

    misc: sort using key parameter (#44465)

Also available in: Atom PDF