X-Git-Url: https://git.siccegge.de//index.cgi?a=blobdiff_plain;f=teilnehmertool.py;h=24f144c128660db81637efe86b320ccf828677ab;hb=7846e1d14b2fd2db7b18dd2760dc451a0d7801c9;hp=a1530c6a8e1433e6b676e1d432c74a3915ac0880;hpb=78a8734336496b30de1476bb13a05905e8f337a2;p=teilnehmertool.git diff --git a/teilnehmertool.py b/teilnehmertool.py index a1530c6..24f144c 100755 --- a/teilnehmertool.py +++ b/teilnehmertool.py @@ -26,7 +26,7 @@ def import_teilnehmer(input): if not int(row[0]) in ids: print "Importing %s" % (row, ) conn.execute("INSERT INTO teilnehmer VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)", - row + [0, 0, 0]) + row[:-2] + ['Kein T-Shirt', 'Kein Pulli'] + row[-2:] + [0, 0, 0]) conn.commit() @@ -148,7 +148,7 @@ def create_bmbf_list(outdir = 'output'): teilnehmer = [] i = 1 for vor, nach, hochschule in \ - conn.execute("SELECT vorname, nachname, hochschule FROM teilnehmer ORDER BY nachname DESC"): + conn.execute("SELECT vorname, nachname, hochschule FROM teilnehmer ORDER BY UPPER(nachname) ASC"): vor = vor.decode('utf8') nach = nach.decode('utf8')