Compare commits

..

No commits in common. "b513dbd08f436009364db12f658cae3039f5e0c2" and "93259f9aeda8ce235075ae4a48c54ded45ed7078" have entirely different histories.

3 changed files with 3 additions and 10 deletions

View File

@ -4,6 +4,3 @@ from ankimaker.commands import cli
def main(): def main():
cli(prog_name='ankimaker') cli(prog_name='ankimaker')
if __name__ == '__main__':
main()

View File

@ -5,8 +5,8 @@ from ankimaker.tasks import basic_pandas_to_anki
@cli.command('csv') @cli.command('csv')
@click.option('-i', '--input', 'input_file', type=click.Path(exists=True)) @click.argument('-i', '--input', 'input_file', type=click.Path(exists=True))
@click.option('-o', '--output', 'output_file', type=click.Path(exists=False)) @click.argument('-o', '--output', 'output_file', type=click.Path(exists=False))
@click.option('-c', '--conf', 'config_file', default=None, type=click.STRING) @click.option('-c', '--conf', 'config_file', default=None, type=click.STRING)
@click.option('-n', '--name', 'name', default=None, type=click.STRING) @click.option('-n', '--name', 'name', default=None, type=click.STRING)
def generate_anki( def generate_anki(
@ -15,9 +15,6 @@ def generate_anki(
name, name,
config_file, config_file,
): ):
"""
Create an anki deck from a csv file and a config file.
"""
output_file = parse_output(output_file) output_file = parse_output(output_file)
if name is None: if name is None:
name = get_name_from_output(output_file) name = get_name_from_output(output_file)

View File

@ -19,8 +19,7 @@ def create_model():
'qfmt': '<div style="text-align: center;">{{Question}}</div>', 'qfmt': '<div style="text-align: center;">{{Question}}</div>',
'afmt': '{{FrontSide}}<hr id="answer"><div style="text-align: center;">{{Answer}}</div>', 'afmt': '{{FrontSide}}<hr id="answer"><div style="text-align: center;">{{Answer}}</div>',
}, },
] ])
)
return my_model return my_model