Skip to content

Commit

Permalink
a polite request and some minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
ndepaola committed Feb 18, 2024
1 parent 878c2cb commit 97baeb2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
9 changes: 7 additions & 2 deletions desktop-tool/autofill.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from src.driver import AutofillDriver
from src.pdf_maker import PdfExporter
from src.processing import ImagePostProcessingConfig
from src.utils import TEXT_BOLD, TEXT_END
from src.utils import bold

# https://stackoverflow.com/questions/12492810/python-how-can-i-make-the-ansi-escape-codes-to-work-also-in-windows
os.system("") # enables ansi escape characters in terminal
Expand Down Expand Up @@ -156,8 +156,13 @@ def main(
auto_save_threshold=auto_save_threshold if auto_save else None,
post_processing_config=post_processing_config,
)
input(
f"If this software has brought you joy and you'd like to throw a few bucks my way,\n"
f"you can find my tip jar here: {bold('https://www.buymeacoffee.com/chilli.axe')}\n\n"
f"Press Enter to close this window - your browser window will remain open.\n"
)
except Exception as e:
print(f"An uncaught exception occurred:\n{TEXT_BOLD}{e}{TEXT_END}\n")
print(f"An uncaught exception occurred:\n{bold(e)}\n")
input("Press Enter to exit.")


Expand Down
7 changes: 3 additions & 4 deletions desktop-tool/src/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ def set_bracket(self, dropdown_id: str) -> None:
)
bracket = bracket_options[0]
print(
f"Configuring your project of {bold(self.order.details.quantity)} "
f"Configuring your project of {bold(self.order.details.quantity)} cards "
f"in the bracket of up to {bold(bracket)} cards."
)
qty_dropdown.select_by_value(str(bracket))
Expand Down Expand Up @@ -668,14 +668,13 @@ def execute(
self.insert_backs(auto_save_threshold)
self.page_to_review()
log_hours_minutes_seconds_elapsed(t)
input(
print(
textwrap.dedent(
f"""
Please review your order and ensure everything has been uploaded correctly before finalising with
{self.target_site.name}. If any images failed to download, links to download them will have been printed
above. If you need to make any changes to your order, you can do so by adding it to your Saved Projects
and editing in your normal browser. Press Enter to close this window - your browser window will remain
open.
and editing in your normal browser.
"""
)
)
Expand Down

0 comments on commit 97baeb2

Please sign in to comment.