Skip to content

Commit 0456f99

Browse files
v1.17.0 (#263)
* Run+weakly supervise ran without problem, but modal for last run shows weird output * refetch cache * Record Downlaod is not working --------- Co-authored-by: LennartSchmidtKern <[email protected]>
1 parent c72cc90 commit 0456f99

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

controller/transfer/record_export_manager.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,10 @@ def __extract_table_meta_classification_data(
126126
break
127127
task = tasks_by_id.get(task_id)
128128

129-
if task.task_type == enums.LabelingTaskType.INFORMATION_EXTRACTION.value:
129+
if (
130+
not task
131+
or task.task_type == enums.LabelingTaskType.INFORMATION_EXTRACTION.value
132+
):
130133
continue
131134

132135
attribute_name = attribute_names.get(str(task.attribute_id))

controller/user/manager.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ def get_or_create_user(user_id: str) -> User:
1919
user_item = user.get(user_id)
2020
if not user_item:
2121
user_item = user.create(user_id, with_commit=True)
22+
kratos.__refresh_identity_cache()
2223
update_last_interaction(user_item.id)
2324
return user_item
2425

@@ -152,3 +153,4 @@ def get_mapped_sorted_paginated_users(
152153
def delete_user(user_id: str) -> None:
153154
user.delete(user_id, with_commit=True)
154155
user_activity.delete_user_activity(user_id, with_commit=True)
156+
kratos.__refresh_identity_cache()

controller/weak_supervision/manager.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,9 @@ def run_then_weak_supervision(
175175
"Weak Supervision Task",
176176
)
177177
notification.send_organization_update(project_id, "weak_supervision_started")
178+
source_names = (
179+
", ".join(source_names) if isinstance(source_names, list) else source_names
180+
)
178181

179182
weak_supervision_task = ws_manager.create_task(
180183
project_id=project_id,

0 commit comments

Comments
 (0)