Skip to content
Snippets Groups Projects

Resolve "exceeded visits list & unfinished visits list"

Merged Piotr Gawron requested to merge 146-exceeded-visits-list-unfinished-visits-list into master
5 files
+ 92
54
Compare changes
  • Side-by-side
  • Inline
Files
5
@@ -21,4 +21,25 @@ def location_to_str(location):
result = ""
if location is not None:
result = unicode(location.name)
return result
\ No newline at end of file
return result
def add_column(result, name, field_name, column_list, param, columns_used_in_study=None, visible_param=None,
sortable=True):
add = True
if columns_used_in_study:
add = getattr(columns_used_in_study, field_name)
if add:
if visible_param is not None:
visible = visible_param
elif column_list is None:
visible = True
else:
visible = getattr(column_list, field_name)
result.append({
"type": field_name,
"name": name,
"filter": param,
"visible": visible,
"sortable": sortable
})
Loading