error raise now locates loc
This commit is contained in:
@@ -22,7 +22,7 @@ COPY api_services ./service_app_init/api_services
|
||||
|
||||
COPY ApiServices ./service_app_init/ApiServices
|
||||
COPY ApiServices/EventService/routers ./service_app_init/routers
|
||||
#COPY ../service_app/application ./service_app_init/application
|
||||
COPY ApiServices/EventService/application ./service_app_init/application
|
||||
|
||||
WORKDIR /service_app_init
|
||||
|
||||
|
||||
@@ -82,7 +82,9 @@ def add_events_all_services_and_occupant_types():
|
||||
import api_events.tasks2events as tasks2events
|
||||
|
||||
for event_block in tasks2events.__all__:
|
||||
print("event_block", event_block)
|
||||
event_block_class = getattr(tasks2events, event_block)
|
||||
print("event_block_class", event_block_class)
|
||||
service_selected = Services.filter_one(
|
||||
Services.service_code == getattr(event_block_class, "service_code", None),
|
||||
system=True,
|
||||
|
||||
@@ -157,6 +157,6 @@ def create_application_defaults_func(create_address=False):
|
||||
|
||||
if __name__ == "__main__":
|
||||
print("Service App Initial Default Runner is running")
|
||||
do_alembic()
|
||||
# create_application_defaults_func(create_address=True)
|
||||
# do_alembic()
|
||||
create_application_defaults_func(create_address=False)
|
||||
print("Service App Initial Default Runner is completed")
|
||||
|
||||
Reference in New Issue
Block a user