Skip to content

Commit

Permalink
RDISCROWD-5432 Auto delete completed tasks after n days: UI changes
Browse files Browse the repository at this point in the history
  • Loading branch information
XiChenn committed Sep 29, 2022
1 parent ab13804 commit 01c8987
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pybossa/themes/default
7 changes: 5 additions & 2 deletions pybossa/view/projects.py
Original file line number Diff line number Diff line change
Expand Up @@ -3548,6 +3548,7 @@ def integrate_ext_config(config_dict):
if bool(data_access_levels):
# for private gigwork
project.info['data_access'] = data.get('data_access')
project.info['completed_tasks_cleanup_days'] = data.get('completed_tasks_cleanup_days')
project_repo.save(project)
flash(gettext('Configuration updated successfully'), 'success')
except Exception as e:
Expand All @@ -3559,12 +3560,14 @@ def integrate_ext_config(config_dict):
ext_config = project.info.get('ext_config', {})
input_forms, ext_config_dict = generate_input_forms_and_external_config_dict()
data_access = project.info.get('data_access') or []
completed_tasks_cleanup_days = project.info.get('completed_tasks_cleanup_days')
response = dict(template='/projects/summary.html',
external_config_dict=json.dumps(ext_config_dict),
forms=input_forms,
data_access=json.dumps(data_access),
valid_access_levels=data_access_levels.get('valid_access_levels') or [],
csrf=generate_csrf()
valid_access_levels=data_access_levels.get('valid_access_levels'),
csrf=generate_csrf(),
completed_tasks_cleanup_days=completed_tasks_cleanup_days
)

return handle_content_type(response)
Expand Down

0 comments on commit 01c8987

Please sign in to comment.