a little more cleanup w/ burnettk
This commit is contained in:
parent
4224916917
commit
761ffd79da
|
@ -38,9 +38,7 @@ OPEN_ID_SERVER_URL = environ.get(
|
|||
# OPEN_ID_SERVER_URL = environ.get("OPEN_ID_SERVER_URL", default="http://localhost:7000/openid")
|
||||
OPEN_ID_CLIENT_ID = environ.get("OPEN_ID_CLIENT_ID", default="spiffworkflow-backend")
|
||||
OPEN_ID_CLIENT_SECRET_KEY = environ.get(
|
||||
# "OPEN_ID_CLIENT_SECRET_KEY", default="JXeQExm0JhQPLumgHtIIqf52bDalHz0q"
|
||||
"OPEN_ID_CLIENT_SECRET_KEY",
|
||||
default="JXeQExm0JhQPLumgHtIIqf52bDalHz0q",
|
||||
"OPEN_ID_CLIENT_SECRET_KEY", default="JXeQExm0JhQPLumgHtIIqf52bDalHz0q"
|
||||
) # noqa: S105
|
||||
|
||||
SPIFFWORKFLOW_BACKEND_LOG_TO_FILE = (
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
"""APIs for dealing with process groups, process models, and process instances."""
|
||||
import json
|
||||
|
||||
from flask import make_response
|
||||
from flask.wrappers import Response
|
||||
|
||||
from spiffworkflow_backend.models.process_instance import ProcessInstanceModel
|
||||
|
@ -9,7 +8,4 @@ from spiffworkflow_backend.models.process_instance import ProcessInstanceModel
|
|||
def status() -> Response:
|
||||
"""Status."""
|
||||
ProcessInstanceModel.query.filter().first()
|
||||
response = Response(
|
||||
json.dumps({"ok": True}), status=200, mimetype="application/json"
|
||||
)
|
||||
return response
|
||||
return make_response({"ok": True}, 200)
|
||||
|
|
|
@ -25,10 +25,6 @@ from spiffworkflow_backend.services.authentication_service import TokenExpiredEr
|
|||
from spiffworkflow_backend.services.authorization_service import AuthorizationService
|
||||
from spiffworkflow_backend.services.user_service import UserService
|
||||
|
||||
# from flask.wrappers import Response
|
||||
|
||||
# from flask_jwt_extended import set_access_cookies
|
||||
|
||||
"""
|
||||
.. module:: crc.api.user
|
||||
:synopsis: Single Sign On (SSO) user login and session handlers
|
||||
|
|
|
@ -208,10 +208,10 @@ export const refreshAtInterval = (
|
|||
timeout: number,
|
||||
func: Function
|
||||
) => {
|
||||
const intervalRef = setInterval(() => func(), interval * 100000);
|
||||
const intervalRef = setInterval(() => func(), interval * 1000);
|
||||
const timeoutRef = setTimeout(
|
||||
() => clearInterval(intervalRef),
|
||||
timeout * 100000
|
||||
timeout * 1000
|
||||
);
|
||||
return () => {
|
||||
clearInterval(intervalRef);
|
||||
|
|
Loading…
Reference in New Issue