|
@@ -133,8 +133,12 @@ class FlattenData():
|
|
key = incoming_key
|
|
key = incoming_key
|
|
if incoming_key is not None:
|
|
if incoming_key is not None:
|
|
# OEBB SPECIFIC IF STATEMENT
|
|
# OEBB SPECIFIC IF STATEMENT
|
|
- if type(data_list[iteration]) is dict and 'stationsnummer' in data_list[iteration].keys() and 'stage' in data_list[iteration].keys() :
|
|
|
|
|
|
+ if type(data_list[iteration]) is dict and 'stationsnummer' in data_list[iteration].keys():
|
|
|
|
+ key = incoming_key + '_' + str(data_list[iteration]['stationsnummer'])
|
|
|
|
+
|
|
|
|
+ elif type(data_list[iteration]) is dict and 'stationsnummer' in data_list[iteration].keys() and 'stage' in data_list[iteration].keys() :
|
|
key = incoming_key + '_' + str(data_list[iteration]['stationsnummer']) + '_' + str(data_list[iteration]['stage'])
|
|
key = incoming_key + '_' + str(data_list[iteration]['stationsnummer']) + '_' + str(data_list[iteration]['stage'])
|
|
|
|
+
|
|
else:
|
|
else:
|
|
key = incoming_key + '_' + str(iteration)
|
|
key = incoming_key + '_' + str(iteration)
|
|
else:
|
|
else:
|