Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add soft warning to create function #9

Open
ImplyingICheck opened this issue May 16, 2023 · 0 comments
Open

Add soft warning to create function #9

ImplyingICheck opened this issue May 16, 2023 · 0 comments

Comments

@ImplyingICheck
Copy link
Owner

If there is a header, the header should indicate that the file contains tab seperated values. If not, the function should alert the developer.

Relevant lines:
[#1]

Requirement:
This should be a soft warning, not a hard warning as the function is decalred at the module level and includes an explicit label as "from_tsv". It is possible to be called without an Anki-created header.

[ankideckconstructor] gaggle.py (Lines 10-11)


def create_cards_from_tsv(f, field_names=None, header=None):
  cards = csv.reader(f, dialect='excel-tab')

Open in IDE · Open on GitHub

Created from JetBrains using CodeStream

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant