Fix event chain bug (#9)
This commit is contained in:
parent
159e7949f1
commit
fd464be3a5
@ -86,7 +86,7 @@ export const updateState = async (
|
|||||||
router
|
router
|
||||||
);
|
);
|
||||||
setResult({
|
setResult({
|
||||||
...result,
|
processing: true,
|
||||||
state: state,
|
state: state,
|
||||||
events: events,
|
events: events,
|
||||||
});
|
});
|
||||||
|
@ -10,6 +10,9 @@ class Config(Base):
|
|||||||
# The name of the app.
|
# The name of the app.
|
||||||
app_name: str
|
app_name: str
|
||||||
|
|
||||||
|
# The username.
|
||||||
|
username: Optional[str] = None
|
||||||
|
|
||||||
# The backend API url.
|
# The backend API url.
|
||||||
api_url: str = "http://localhost:8000"
|
api_url: str = "http://localhost:8000"
|
||||||
|
|
||||||
|
@ -241,12 +241,7 @@ def get_config() -> Config:
|
|||||||
The app config.
|
The app config.
|
||||||
"""
|
"""
|
||||||
sys.path.append(os.getcwd())
|
sys.path.append(os.getcwd())
|
||||||
try:
|
return __import__(constants.CONFIG_MODULE).config
|
||||||
return __import__(constants.CONFIG_MODULE).config
|
|
||||||
except:
|
|
||||||
print(f"No {constants.CONFIG_MODULE} module found.")
|
|
||||||
print("Using default config.")
|
|
||||||
return Config(app_name="")
|
|
||||||
|
|
||||||
|
|
||||||
def get_bun_path():
|
def get_bun_path():
|
||||||
@ -871,6 +866,6 @@ def get_redis():
|
|||||||
return None
|
return None
|
||||||
redis_url, redis_port = config.redis_url.split(":")
|
redis_url, redis_port = config.redis_url.split(":")
|
||||||
print("Using redis at", config.redis_url)
|
print("Using redis at", config.redis_url)
|
||||||
return redis.Redis(host=redis_url, port=redis_port, db=0)
|
return redis.Redis(host=redis_url, port=int(redis_port), db=0)
|
||||||
except:
|
except:
|
||||||
return None
|
return None
|
||||||
|
Loading…
Reference in New Issue
Block a user