Skip to content
This repository has been archived by the owner on Jan 31, 2022. It is now read-only.

Commit

Permalink
formato mapa
Browse files Browse the repository at this point in the history
  • Loading branch information
s-nt-s committed Sep 17, 2018
1 parent f60fdbf commit d6c3c6c
Show file tree
Hide file tree
Showing 3 changed files with 8,555 additions and 7,299 deletions.
3 changes: 2 additions & 1 deletion api/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,8 @@ def abbr_puesto(self):
("COORDINADOR / COORDINADORA", "COORDINADOR/A"),
("MONITOR / MONITORA", "MONITOR/A"),
("SECRETARIO / SECRETARIA", "SECRETARIO/A"),
("TECNICO / TECNICA", "TECNICO/A")
("TECNICO / TECNICA", "TECNICO/A"),
("OPERADOR / OPERADORA", "OPERADOR/A"),
):
dePuesto = dePuesto.replace(s1+" ", s2+" ")
return dePuesto
Expand Down
4 changes: 2 additions & 2 deletions crear_mapa.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,13 +140,13 @@ def crear_descripcion(orgs):
if len(direcciones) > 1 and org.deDireccion:
description += "Dirección: %s\n" % (org.deDireccion,)
if org.url:
description += org.url
description += org.url + "\n"
dePuestos = sorted(set([p.abbr_puesto for p in org.puestos]))
for dePuesto in dePuestos:
puestos = [p for p in org.puestos if p.abbr_puesto == dePuesto]
if len(puestos) == 1:
p = puestos[0]
description += "\n%s/%s - %s" % (p.idPuesto,
description += "\n%s/%s - %s\n" % (p.idPuesto,
p.nivel, p.abbr_puesto)
else:
description += "\n(%s) %s:" % (len(puestos), dePuesto)
Expand Down
Loading

0 comments on commit d6c3c6c

Please sign in to comment.