oioioi.problems.views
¶
Module Contents¶
Functions¶
- oioioi.problems.views.filter_problems_by_origin(problems, origin_tags)[source]¶
The filters are almost always logical ANDed, the only exception to this are OriginInfoValues within their OriginInfoCategory, which are logical ORred - it is possible to search for example for tasks from round “1 or 2” and year “2011 or 2012 or 2013”. Searching in Problemset from the Task Archive relies on this behaviour.
- oioioi.problems.views.problem_site_external_attachment_view(request, site_key, attachment_id)[source]¶
- oioioi.problems.views.get_search_hints_view(request, view_type)[source]¶
Search hints are JSON objects with the following fields:
name - name displayed in the dropdown box category (optional) - category for grouping in the dropdown box
prefix (only search tags) - GET param key and prefix for the search tag
search_name (optional) - to be passed to the search box instead of name value (optional) - to be used as a GET param value instead of name
- trigger (optional) - special trigger for the internal logic of the
typeahead script, see init_search_selection