backend.routers.gigs_livemode

Live-mode router.

Provides endpoints to control the live mode during a performance: song feedback ratings, skipping and inserting songs, and set navigation. All write operations require the editor or admin role.

Prefix: /gigs_lm | Tag: gigs_lm

class backend.routers.gigs_livemode.LogFilter(name='')[source]

Bases: Filter

filter(record)[source]

Determine if the specified record is to be logged.

Returns True if the record should be logged, or False otherwise. If deemed appropriate, the record may be modified in-place.

backend.routers.gigs_livemode.get_gigs_lm(gig_id, db=Depends(dependency=<function get_db>, use_cache=True, scope=None), current_user=Depends(dependency=<function get_current_user_dep>, use_cache=True, scope=None))[source]
backend.routers.gigs_livemode.update_songs_lm(gig_id, data, db=Depends(dependency=<function get_db>, use_cache=True, scope=None), current_user=Depends(dependency=<function get_current_user_dep>, use_cache=True, scope=None))[source]
backend.routers.gigs_livemode.insert_song_after(gig_id, after_setsong_id=Query(None), before_setsong_id=Query(None), song_id=Query(PydanticUndefined), db=Depends(dependency=<function get_db>, use_cache=True, scope=None), current_user=Depends(dependency=<function get_current_user_dep>, use_cache=True, scope=None))[source]