nkdsu.apps.vote.management.commands package

Submodules

nkdsu.apps.vote.management.commands.import_2013 module

class nkdsu.apps.vote.management.commands.import_2013.Command(stdout=None, stderr=None, no_color=False, force_color=False)[source]

Bases: BaseCommand

args = 'filename'
help = 'import data from a dumpdata from the old site'
handle(filename, *args, **options)[source]
create_old_shows()[source]

Create the weeks between the first show on record and today.

import_request(instance)[source]
import_scheduleoverride(instance)[source]
import_track(instance)[source]
import_play(instance)[source]
import_vote(instance)[source]
import_manual_vote(instance)[source]
import_block(instance)[source]

nkdsu.apps.vote.management.commands.import_show_from_itunes_playlist module

class nkdsu.apps.vote.management.commands.import_show_from_itunes_playlist.Command(stdout=None, stderr=None, no_color=False, force_color=False)[source]

Bases: BaseCommand

args = 'filename'
help = 'import a playlist from a timestamped iTunes playlist'
handle(filename, *args, **options)[source]
import_playlists()[source]
import_playlist(playlist)[source]

nkdsu.apps.vote.management.commands.migrate_away_from module

class nkdsu.apps.vote.management.commands.migrate_away_from.Command(stdout=None, stderr=None, no_color=False, force_color=False)[source]

Bases: BaseCommand

help = 'copy all plays and votes from one track to another and then remove the first'
add_arguments(parser) None[source]
handle(to_remove_id, target_id, *args, **options) None[source]

nkdsu.apps.vote.management.commands.non_ascii_tracks module

class nkdsu.apps.vote.management.commands.non_ascii_tracks.Command(stdout=None, stderr=None, no_color=False, force_color=False)[source]

Bases: BaseCommand

handle(**options) None[source]

nkdsu.apps.vote.management.commands.popular_tracks module

class nkdsu.apps.vote.management.commands.popular_tracks.Command(stdout=None, stderr=None, no_color=False, force_color=False)[source]

Bases: BaseCommand

counter(items, func)[source]
handle(**options)[source]

nkdsu.apps.vote.management.commands.update_anime_pictures module

class nkdsu.apps.vote.management.commands.update_anime_pictures.Command(stdout=None, stderr=None, no_color=False, force_color=False)[source]

Bases: BaseCommand

help = 'Update art for all present anime.'
add_arguments(parser: CommandParser) None[source]
handle(*, force_refresh: bool, **options) None[source]

nkdsu.apps.vote.management.commands.update_background_art module

class nkdsu.apps.vote.management.commands.update_background_art.Command(stdout=None, stderr=None, no_color=False, force_color=False)[source]

Bases: BaseCommand

help = 'Update background art for tracks. You can specify a track ID as an argument if you only want to do one track.'
add_arguments(parser: CommandParser) None[source]
handle(track_id: str | None = None, *args, **options) None[source]

nkdsu.apps.vote.management.commands.update_emoji_lists module

class nkdsu.apps.vote.management.commands.update_emoji_lists.Command(stdout=None, stderr=None, no_color=False, force_color=False)[source]

Bases: BaseCommand

retrieve(fn: str) None[source]
handle(*args, **kwargs) None[source]

nkdsu.apps.vote.management.commands.update_library module

class nkdsu.apps.vote.management.commands.update_library.Command(stdout=None, stderr=None, no_color=False, force_color=False)[source]

Bases: BaseCommand

args = '<...>'
help = 'manually update library from songlibrary.xml'
handle(*args, **options)[source]

nkdsu.apps.vote.management.commands.update_local_data module

class nkdsu.apps.vote.management.commands.update_local_data.Command(stdout=None, stderr=None, no_color=False, force_color=False)[source]

Bases: BaseCommand

handle(*args, **kwargs) None[source]

nkdsu.apps.vote.management.commands.update_mastodon_instances module

class nkdsu.apps.vote.management.commands.update_mastodon_instances.Command(stdout=None, stderr=None, no_color=False, force_color=False)[source]

Bases: BaseCommand

write_instances(instances: list[str]) None[source]
handle(*args, **kwargs) None[source]