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
↓ 59 callers
Method
get
Get a user by their id or name from the database. :param _id: the id (as an int) or name (as a str) of the user to get :retu
c3bottles/model/user.py:91
↓ 22 callers
Method
all
Get all users from the database. :return: a list of all users in the database
c3bottles/model/user.py:133
↓ 12 callers
Method
get
(cls, attr, default=None)
c3bottles/config/map.py:11
↓ 12 callers
Method
get_dps_json
Get drop points as a JSON string. If a time has been given as optional parameters, only drop points are returned that have c
c3bottles/model/drop_point.py:398
↓ 10 callers
Method
remove
Remove a drop point. This will not actually purge a drop point from the database but simply mark it as removed so it will no
c3bottles/model/drop_point.py:117
↓ 9 callers
Method
get_or_404
Get a user by their id or name from the database. If the user does not exist, abort the current request with an error 404. :
c3bottles/model/user.py:105
↓ 6 callers
Function
categories_sorted
Get a list of all categories sorted by their human-readable name with respect to the user's language. :return: A list of all categories
c3bottles/model/category.py:50
↓ 4 callers
Function
_create_pdf
(dp: DropPoint)
c3bottles/views/label.py:69
↓ 4 callers
Function
add_alert
(type, title, message)
js/common/modals.js:7
↓ 3 callers
Method
get_by_token
Get a user by their token from the database. :param token: The token of the user to get. :return: the user object in questio
c3bottles/model/user.py:122
↓ 3 callers
Function
make_secure_token
Generate a session token by which the user session will be identified. This is tied to the account and allows getting the account from a sess
c3bottles/model/user.py:179
↓ 3 callers
Function
redrawMarkers
()
js/common/map.js:109
↓ 3 callers
Method
validate_password
(self, password: str)
c3bottles/model/user.py:87
↓ 2 callers
Function
drawMarker
(num)
js/common/map.js:55
↓ 2 callers
Function
getIcon
(category, state)
js/common/map.js:37
↓ 2 callers
Function
getMarker
(latlng)
js/common/create.js:17
↓ 2 callers
Function
getTableData
()
js/common/list.js:25
↓ 2 callers
Method
get_dp_info
(cls, number: int)
c3bottles/model/drop_point.py:364
↓ 2 callers
Method
get_dp_json
Get a JSON string characterizing a drop point. This returns a JSON representation of the dict constructed by :meth:`get_dp_i
c3bottles/model/drop_point.py:388
↓ 2 callers
Function
setCSRFToken
(token)
js/common/csrf.js:7
↓ 2 callers
Function
setInfoFromMarker
(latlng)
js/common/create.js:9
↓ 2 callers
Function
showPane
(pane)
js/common/modals.js:76
↓ 1 callers
Function
before_request
()
c3bottles/views/__init__.py:13
↓ 1 callers
Function
cli
()
manage.py:30
↓ 1 callers
Function
draw_drop_points_by_state
(_data)
js/entries/numbers.js:11
↓ 1 callers
Function
draw_reports_by_state
(_data)
js/entries/numbers.js:40
↓ 1 callers
Function
drop_points_by_category_and_state
(category, state)
c3bottles/lib/statistics.py:27
↓ 1 callers
Function
drop_points_by_category_and_state_gen
(category, state)
c3bottles/lib/statistics.py:37
↓ 1 callers
Function
drop_points_by_category_gen
(category)
c3bottles/lib/statistics.py:7
↓ 1 callers
Function
drop_points_by_state
(state)
c3bottles/lib/statistics.py:13
↓ 1 callers
Function
drop_points_by_state_gen
(state)
c3bottles/lib/statistics.py:23
↓ 1 callers
Function
getLayerNumber
(level)
js/common/map.js:17
↓ 1 callers
Function
getLevelNumber
(layer)
js/common/map.js:27
↓ 1 callers
Method
get_id
(self)
c3bottles/model/user.py:84
↓ 1 callers
Function
get_marker
(latlng)
js/common/map.js:302
↓ 1 callers
Method
get_next_free_number
Get the next free drop point number.
c3bottles/model/drop_point.py:429
↓ 1 callers
Method
get_state_weight
(cls, state: str)
c3bottles/model/report.py:112
↓ 1 callers
Method
get_weight
Get the weight (i.e. significance) of a report. The weight of a report determines how significant it is for the calculation of the pr
c3bottles/model/report.py:79
↓ 1 callers
Function
monitor
( app, address=app.config.get("PROMETHEUS_ADDRESS", "127.0.0.1"), port=app.config.get("PROMETHEUS_
c3bottles/lib/metrics.py:51
↓ 1 callers
Function
not_found
(_)
c3bottles/views/__init__.py:96
↓ 1 callers
Function
redrawTable
()
js/common/list.js:51
↓ 1 callers
Function
report_dp
(num, state)
js/common/modals.js:28
↓ 1 callers
Function
reports_by_category_and_state
(category, state)
c3bottles/lib/statistics.py:41
↓ 1 callers
Function
reports_by_category_and_state_gen
(category, state)
c3bottles/lib/statistics.py:49
↓ 1 callers
Function
setCategory
(num)
js/common/list.js:37
↓ 1 callers
Function
setCategory
(num)
js/common/map.js:123
↓ 1 callers
Function
set_locale
Set the locale in the session to one of the available languages. If a language has been given via the URL, it is set if it is a valid lan
c3bottles/__init__.py:64
↓ 1 callers
Function
unauthorized
(_)
c3bottles/views/__init__.py:84
↓ 1 callers
Function
update
(ts)
js/common/refresh.js:6
↓ 1 callers
Function
visit_dp
(num, action)
js/common/modals.js:85
Method
__getattr__
(cls, attr)
c3bottles/config/map.py:5
Method
__init__
(self, dp: "drop_point.DropPoint", time: datetime = None, action: str = None)
c3bottles/model/visit.py:40
Method
__init__
( self, name: str = None, password: str = None, can_visit: bool = True,
c3bottles/model/user.py:34
Method
__init__
(self)
c3bottles/model/user.py:148
Method
__init__
(self, dp: "drop_point.DropPoint", time: datetime = None, state: str = None)
c3bottles/model/report.py:44
Method
__init__
(self, category_id: int, name: LazyString)
c3bottles/model/category.py:17
Method
__init__
( self, dp: "drop_point.DropPoint", time: datetime = None, description: str =
c3bottles/model/location.py:42
Method
__init__
Create a new drop point object. New drop point objects will be added to the database automatically if the creation was succe
c3bottles/model/drop_point.py:47
Method
__len__
(self)
c3bottles/model/category.py:25
Method
__repr__
(self)
c3bottles/model/visit.py:76
Method
__repr__
(self)
c3bottles/model/report.py:118
Method
__repr__
(self)
c3bottles/model/location.py:111
Method
__repr__
(self)
c3bottles/model/drop_point.py:439
Method
__str__
(self)
c3bottles/model/category.py:22
Function
_initTile
(tile)
js/common/map.js:154
Function
_levelClick
(e)
js/common/map.js:241
Function
addLayer
(id, title)
js/common/map.js:195
Function
admin
()
tests/test_user.py:23
Function
after_request
(response)
c3bottles/lib/metrics.py:44
Function
all_dp_json
()
c3bottles/views/api.py:27
Function
all_labels_pdf
()
c3bottles/views/label.py:30
Function
all_labels_zip
()
c3bottles/views/label.py:41
Function
app_ctx
()
tests/conftest.py:8
Function
bad_request
(_)
c3bottles/views/__init__.py:69
Function
beforeSend
(xhr, settings)
js/common/csrf.js:9
Function
before_request
()
c3bottles/lib/metrics.py:40
Method
can_edit
(self)
c3bottles/model/user.py:168
Method
can_report
(self)
c3bottles/model/user.py:81
Method
can_report
(self)
c3bottles/model/user.py:160
Method
can_visit
(self)
c3bottles/model/user.py:164
Method
category
(self)
c3bottles/model/drop_point.py:154
Function
change_password
Sets a new password for a user.
c3bottles/model/user.py:235
Function
check_for_admin
()
c3bottles/views/admin.py:15
Function
create
(lat: str = None, lng: str = None, level: str = None)
c3bottles/views/manage.py:18
Function
create_user
Creates a new user.
c3bottles/model/user.py:205
Function
create_user
()
c3bottles/views/admin.py:125
Function
createdCell
(td, cd, rd)
js/common/list.js:111
Function
createdRow
(row, data)
js/common/list.js:162
Function
database
(request)
tests/conftest.py:20
Function
decorated_view
(*args, **kwargs)
c3bottles/views/__init__.py:26
Function
delete_user
Deletes a user.
c3bottles/model/user.py:219
Function
delete_user
()
c3bottles/views/admin.py:113
Method
description
(self)
c3bottles/model/drop_point.py:170
Method
description_with_level
(self)
c3bottles/model/location.py:100
Method
description_with_level
(self)
c3bottles/model/drop_point.py:174
Function
details
(number: int = None)
c3bottles/views/view.py:35
Function
disable_user
()
c3bottles/views/admin.py:40
Function
dp
()
tests/test_location.py:23
Function
dp
()
tests/test_visit.py:12
Function
dp
()
tests/test_report.py:11
next →
1–100 of 330, ranked by callers