Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/c3bottles/c3bottles
/ functions
Functions
330 in github.com/c3bottles/c3bottles
⨍
Functions
330
◇
Types & classes
21
↳
Endpoints
34
Function
dp
()
tests/test_drop_point.py:20
Method
drop_points_by_category
(self)
c3bottles/lib/statistics.py:62
Method
drop_points_by_category_and_state
(self)
c3bottles/lib/statistics.py:107
Function
dropdb
Removes the database. This removes everything from the database.
manage.py:47
Function
edit
(number: int = None)
c3bottles/views/manage.py:76
Function
editor
()
tests/test_user.py:17
Function
enable_user
()
c3bottles/views/admin.py:54
Function
error
(response)
js/common/modals.js:45
Function
escapejs
(value)
translations/translate-js.py:30
Function
faq
()
c3bottles/views/main.py:12
Function
filter
(feature)
js/common/map.js:79
Function
fin
()
tests/conftest.py:24
Function
finalize
()
js/common/map.js:252
Function
first_report
(dp)
tests/test_drop_point.py:222
Function
first_visit
(dp)
tests/test_visit.py:48
Function
for_cat
(number: int)
c3bottles/views/label.py:55
Function
for_dp
(number: int)
c3bottles/views/label.py:21
Function
fresh_state
()
tests/webtest/fixtures.py:14
Method
get
(category_id: int)
c3bottles/model/category.py:32
Function
get_locale
Get the locale from the session. If no locale is available, set it.
c3bottles/__init__.py:55
Function
handle_404
(e)
c3bottles/views/admin.py:20
Method
history
(self)
c3bottles/model/drop_point.py:265
Function
index
()
c3bottles/views/api.py:17
Function
index
()
c3bottles/views/admin.py:28
Function
index
()
c3bottles/views/main.py:7
Function
initdb
Initializes the database. This creates all database tables if they do not exist already.
manage.py:35
Function
initializeMap
()
js/common/map.js:149
Function
inject_variables
()
c3bottles/views/__init__.py:20
Method
is_admin
(self)
c3bottles/model/user.py:172
Method
is_authenticated
(self)
c3bottles/model/user.py:77
Method
json
(cls)
c3bottles/config/map.py:19
Function
l2
(dp)
tests/test_location.py:44
Method
last_report
Get the last report of a drop point.
c3bottles/model/drop_point.py:231
Method
last_state
Get the current state of a drop point. The state is influenced by two mechanisms: * Reports: a report will always set the d
c3bottles/model/drop_point.py:202
Method
last_visit
Get the last visit of a drop point.
c3bottles/model/drop_point.py:238
Method
lat
(self)
c3bottles/model/drop_point.py:162
Method
level
(self)
c3bottles/model/drop_point.py:158
Function
list_
()
c3bottles/views/view.py:12
Function
list_users
Lists all users.
c3bottles/model/user.py:249
Method
lng
(self)
c3bottles/model/drop_point.py:166
Function
load_
(token)
c3bottles/model/user.py:143
Method
location
(self)
c3bottles/model/drop_point.py:186
Function
login
()
c3bottles/views/user.py:16
Function
logout
()
c3bottles/views/user.py:41
Function
map_
()
c3bottles/views/view.py:22
Method
name
(self)
c3bottles/model/user.py:152
Function
needs_admin
(func)
c3bottles/views/__init__.py:57
Function
needs_editing
(func)
c3bottles/views/__init__.py:46
Function
needs_reporting
(func)
c3bottles/views/__init__.py:24
Function
needs_visiting
(func)
c3bottles/views/__init__.py:35
Method
new_report_count
(self)
c3bottles/model/drop_point.py:194
Method
new_reports
Get the reports since the last visit of a drop point. This method returns all reports for this drop point since the last vis
c3bottles/model/drop_point.py:245
Function
numbers
()
c3bottles/views/statistics.py:9
Function
numbers_js
()
c3bottles/views/statistics.py:29
Function
numbers_json
()
c3bottles/views/statistics.py:19
Function
onAdd
()
js/common/map.js:185
Method
overall_drop_point_count
(self)
c3bottles/lib/statistics.py:55
Method
overall_drop_points_by_state
(self)
c3bottles/lib/statistics.py:93
Method
overall_drop_points_by_state_prometheus
(self)
c3bottles/lib/statistics.py:86
Method
override
(cls, attr, value)
c3bottles/config/map.py:15
Function
pointToLayer
(feature, latlng)
js/common/map.js:82
Method
priority
Get the priority to visit this drop point. The priority to visit a drop point mainly depends on the number and weight of rep
c3bottles/model/drop_point.py:345
Method
priority_base_time
Get the base time for visit priority calculation of a drop point. This is either the time of the last visit, or, if no visit has bee
c3bottles/model/drop_point.py:332
Method
priority_factor
(self)
c3bottles/model/drop_point.py:300
Function
profile
Runs a development server with profiling. This is similar to the 'serve' command. It adds werkzeug's profiler middleware to facilitate e
manage.py:74
Function
render
(data, type)
js/common/list.js:79
Function
report
(dp)
tests/test_visit.py:73
Function
report
(dp)
tests/test_report.py:20
Function
report
()
c3bottles/views/api.py:45
Function
report
(number: int = None)
c3bottles/views/action.py:15
Method
report
Submit a report for a drop point.
c3bottles/model/drop_point.py:141
Method
report_count
(self)
c3bottles/lib/statistics.py:72
Method
reports_by_category_and_state
(self)
c3bottles/lib/statistics.py:131
Method
reports_by_state
(self)
c3bottles/lib/statistics.py:121
Function
request_ctx
()
tests/conftest.py:14
Function
second_report
(dp, first_report)
tests/test_drop_point.py:262
Function
second_visit
(dp, first_visit)
tests/test_visit.py:90
Function
serve
Runs a development server.
manage.py:62
Function
setLayer
(id)
js/common/map.js:220
Function
stats
()
c3bottles/views/statistics.py:14
Function
success
(response)
js/common/modals.js:38
Function
test_404
(fresh_state)
tests/webtest/test_views.py:30
Function
test_admin_area_401_always
(fresh_state)
tests/webtest/test_views.py:43
Function
test_admin_area_401_index
(fresh_state)
tests/webtest/test_views.py:36
Function
test_admin_can_visit
(admin)
tests/test_user.py:84
Function
test_admin_cant_edit
(admin)
tests/test_user.py:80
Function
test_admin_is_active
(admin)
tests/test_user.py:72
Function
test_admin_is_admin
(admin)
tests/test_user.py:76
Function
test_admin_name
(admin)
tests/test_user.py:68
Function
test_basic_views
(view, fresh_state)
tests/webtest/test_views.py:13
Function
test_create_user_no_name
()
tests/test_user.py:95
Function
test_create_user_no_password
()
tests/test_user.py:88
Function
test_database_has_one_location
(dp)
tests/test_location.py:39
Function
test_database_has_two_locations
(l2)
tests/test_location.py:59
Function
test_description_too_long
(dp)
tests/test_location.py:110
Function
test_dp_already_removed
(dp)
tests/test_drop_point.py:212
Function
test_dp_created_in_future
()
tests/test_drop_point.py:98
Function
test_dp_creation_time
(dp)
tests/test_drop_point.py:83
Function
test_dp_equals_dp_from_db
(dp)
tests/test_drop_point.py:27
Function
test_dp_first_new_report
(dp, first_report)
tests/test_drop_point.py:254
← previous
next →
101–200 of 330, ranked by callers