last changes
This commit is contained in:
1
main.py
1
main.py
@@ -22,3 +22,4 @@ if __name__ == "__main__":
|
||||
# Spaltennamen prüfen und überflüssige Spalten löschen
|
||||
# Abgleich starten -collisions
|
||||
# TODO Testuser + Spezialfälle Raumaccounts etc. "Tafel" "Raum"
|
||||
# TODO Fehlerhafte Sonderzeichen erkennen (oxport_schueler.csv - 171)
|
||||
|
||||
@@ -50,7 +50,8 @@ def create_uuid():
|
||||
|
||||
|
||||
def add_hl_tag(row):
|
||||
return 'HL0707104-' + row['klasse']
|
||||
klasse = str(row['klasse']).lstrip('0')
|
||||
return 'HL0707104-' + klasse
|
||||
|
||||
|
||||
def create_import_list(path, path_new, old_pairs, new_pairs, common_pairs):
|
||||
@@ -102,7 +103,7 @@ def create_import_list(path, path_new, old_pairs, new_pairs, common_pairs):
|
||||
# pd.reset_option('display.max_rows')
|
||||
# pd.reset_option('display.max_columns')
|
||||
out_path = '../GGS/outputSchueler.csv'
|
||||
import_df.to_csv(out_path, index=False)
|
||||
import_df.to_csv(out_path, sep=';', index=False)
|
||||
print(len(import_df))
|
||||
print('Schüler Import Liste erzeugt')
|
||||
print('Testuser manuell nachtragen!!')
|
||||
|
||||
Reference in New Issue
Block a user