election_day.collections.upload_tokens

Classes

UploadTokenCollection

Module Contents

class election_day.collections.upload_tokens.UploadTokenCollection(session: sqlalchemy.orm.Session)[source]
session[source]
query() Query[UploadToken][source]
create() onegov.election_day.models.UploadToken[source]

Creates a new token.

delete(item: onegov.election_day.models.UploadToken) None[source]

Deletes the given token.

by_id(id: uuid.UUID) onegov.election_day.models.UploadToken | None[source]

Returns the token by its id.