reuse update fn
This commit is contained in:
parent
34652bfd67
commit
8dd1eeb922
@ -138,13 +138,10 @@ def set_last_reflex_run_time():
|
|||||||
Returns:
|
Returns:
|
||||||
The last time the reflex app was started.
|
The last time the reflex app was started.
|
||||||
"""
|
"""
|
||||||
reflex_json_file = get_web_dir() / constants.Reflex.JSON
|
path_ops.update_json_file(
|
||||||
if not reflex_json_file.exists():
|
get_web_dir() / constants.Reflex.JSON,
|
||||||
return
|
{"last_reflex_run_datetime": str(datetime.now())},
|
||||||
|
)
|
||||||
data = json.loads(reflex_json_file.read_text())
|
|
||||||
data.update({"last_reflex_run_datetime": str(datetime.now())})
|
|
||||||
path_ops.update_json_file(reflex_json_file, data)
|
|
||||||
|
|
||||||
|
|
||||||
def check_node_version() -> bool:
|
def check_node_version() -> bool:
|
||||||
|
Loading…
Reference in New Issue
Block a user