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

Use regex pattern matching to do this a nicer way. (and the other instance, too), this is messy and uncontrolled. #264

Open
benfoley opened this issue Dec 5, 2021 · 1 comment

Comments

@benfoley
Copy link
Contributor

benfoley commented Dec 5, 2021

Use regex pattern matching to do this a nicer way. (and the other instance, too), this is messy and uncontrolled.

Originally posted by @nicklambourne in #255 (comment)

@benfoley
Copy link
Contributor Author

benfoley commented Dec 5, 2021

tx_name = f"{TX_NAME}{i}"
while tx_name in elpis.list_transcriptions():
    i = i + 1
    tx_name = f"{TX_NAME}{i}"

In the HFT CLI example files.

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