Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try:
- print("00")
- Results_Database['client']['SOMA']['SB-30-SOM']['year'][str(current_year)]['month'][str(current_month)]['day'][str(current_day)]['hour'][str(current_hour)]['Engine_ON'] = 100
- except KeyError:
- try:
- print("1")
- Results_Database['client']['SOMA']['SB-30-SOM']['year'][str(current_year)]['month'][str(current_month)]['day'][str(current_day)]['hour'] = str(current_hour)
- Results_Database['client']['SOMA']['SB-30-SOM']['year'][str(current_year)]['month'][str(current_month)]['day'][str(current_day)]['hour'][str(current_hour)]['Engine_ON'] = 100
- except KeyError:
- try:
- print("2")
- Results_Database['client']['SOMA']['SB-30-SOM']['year'][str(current_year)]['month'][str(current_month)]['day'] = str(current_day)
- print(Results_Database['client']['SOMA']['SB-30-SOM']['year'][str(current_year)]['month'][str(current_month)]['day'])
- Results_Database['client']['SOMA']['SB-30-SOM']['year'][str(current_year)]['month'][str(current_month)]['day'][str(current_day)]['hour'] = str(current_hour)
- Results_Database['client']['SOMA']['SB-30-SOM']['year'][str(current_year)]['month'][str(current_month)]['day'][str(current_day)]['hour'][str(current_hour)]['Engine_ON'] = 100
- except KeyError:
- try:
- print("3")
- Results_Database['client']['SOMA']['SB-30-SOM']['year'][str(current_year)]['month'] = str(current_month)
- Results_Database['client']['SOMA']['SB-30-SOM']['year'][str(current_year)]['month'][str(current_month)]['day'] = str(current_day)
- Results_Database['client']['SOMA']['SB-30-SOM']['year'][str(current_year)]['month'][str(current_month)]['day'][str(current_day)]['hour'] = str(current_hour)
- Results_Database['client']['SOMA']['SB-30-SOM']['year'][str(current_year)]['month'][str(current_month)]['day'][str(current_day)]['hour'][str(current_hour)]['Engine_ON'] = 100
- except KeyError:
- print("4")
- Results_Database['client']['SOMA']['SB-30-SOM']['year'] = str(current_year)
- Results_Database['client']['SOMA']['SB-30-SOM']['year'][str(current_year)]['month'] = str(current_month)
- Results_Database['client']['SOMA']['SB-30-SOM']['year'][str(current_year)]['month'][str(current_month)]['day'] = str(current_day)
- Results_Database['client']['SOMA']['SB-30-SOM']['year'][str(current_year)]['month'][str(current_month)]['day'][str(current_day)]['hour'] = str(current_hour)
- Results_Database['client']['SOMA']['SB-30-SOM']['year'][str(current_year)]['month'][str(current_month)]['day'][str(current_day)]['hour'][str(current_hour)]['Engine_ON'] = 100
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement