|
@@ -8,6 +8,7 @@ import pydux_sqlite
|
|
# Import modules
|
|
# Import modules
|
|
import counter
|
|
import counter
|
|
import calculate
|
|
import calculate
|
|
|
|
+import instrument_manager
|
|
|
|
|
|
# Define the async loop
|
|
# Define the async loop
|
|
loop = asyncio.get_event_loop()
|
|
loop = asyncio.get_event_loop()
|
|
@@ -25,13 +26,15 @@ middleware = pydux.apply_middleware(*middleware)
|
|
# Combine the state
|
|
# Combine the state
|
|
initial_state = {
|
|
initial_state = {
|
|
'counter': counter.initial_state,
|
|
'counter': counter.initial_state,
|
|
- 'calculate': calculate.initial_state
|
|
|
|
|
|
+ 'calculate': calculate.initial_state,
|
|
|
|
+ 'instrument_manager': instrument_manager.initial_state
|
|
}
|
|
}
|
|
|
|
|
|
# Combine the reducers
|
|
# Combine the reducers
|
|
root_reducer = pydux.combine_reducers({
|
|
root_reducer = pydux.combine_reducers({
|
|
'counter': counter.reducer,
|
|
'counter': counter.reducer,
|
|
- 'calculate': calculate.reducer
|
|
|
|
|
|
+ 'calculate': calculate.reducer,
|
|
|
|
+ 'instrument_manager': instrument_manager.reducer
|
|
})
|
|
})
|
|
|
|
|
|
# Create the store
|
|
# Create the store
|