Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -139,10 +139,12 @@ def input_state(state: VisitorState):
|
|
139 |
def registration_state(state: VisitorState):
|
140 |
"""Registration State: Check and register visitor."""
|
141 |
is_registered = registration_tool(state.visitor_name, state.visitor_mobile)
|
|
|
142 |
if is_registered:
|
143 |
return {"messages": ["Visitor is registered."], "next": "SchedulingState"}
|
144 |
else:
|
145 |
successfully_registered = register_visitor(state.visitor_name, state.visitor_mobile)
|
|
|
146 |
if successfully_registered:
|
147 |
return {"messages": ["Visitor has been successfully registered."], "next": "SchedulingState"}
|
148 |
else:
|
|
|
139 |
def registration_state(state: VisitorState):
|
140 |
"""Registration State: Check and register visitor."""
|
141 |
is_registered = registration_tool(state.visitor_name, state.visitor_mobile)
|
142 |
+
print("The visitor named "+state.visitor_name+" and mobile number "+state.visitor_mobile+" registration is "+is_registered)
|
143 |
if is_registered:
|
144 |
return {"messages": ["Visitor is registered."], "next": "SchedulingState"}
|
145 |
else:
|
146 |
successfully_registered = register_visitor(state.visitor_name, state.visitor_mobile)
|
147 |
+
print("Registration of the visitor named "+state.visitor_name+" and mobile number "+state.visitor_mobile+" registration is "+is_registered)
|
148 |
if successfully_registered:
|
149 |
return {"messages": ["Visitor has been successfully registered."], "next": "SchedulingState"}
|
150 |
else:
|