Skip to content

Commit

Permalink
pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
rv0lt committed Oct 17, 2023
1 parent 363f153 commit 2e25400
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions dds_cli/project_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,10 @@ def extend_deadline(self):

prompt_question = (
f"Enter the number of days you want to extend the project, "
f"the number of days has to be equal or same as [b][green]{default_unit_days}[/green][/b].\n"
f"Or leave it empty to apply the default [b][green]{default_unit_days} days [/green][/b]"
f"the number of days has to be equal or same as "
f"[b][green]{default_unit_days}[/green][/b].\n"
f"Or leave it empty to apply the default "
f"[b][green]{default_unit_days} days [/green][/b]"
)

dds_cli.utils.console.print(prompt_question)
Expand All @@ -192,22 +194,25 @@ def extend_deadline(self):
extend_deadline = int(extend_deadline)
if extend_deadline > default_unit_days:
dds_cli.utils.console.print(
"\n[b][red]The number of days has to be lower than the default deadline extension number[/b][/red]\n"
"\n[b][red]The number of days has to be lower than "
"the default deadline extension number[/b][/red]\n"
)
LOG.info("Exiting the function, try again")
sys.exit(0)

except ValueError:
dds_cli.utils.console.print(
"\n[b][red]Remember to write the number of days using numbers (dont use letters)[/b][/red]\n"
"\n[b][red]Remember to write the number of days "
"using numbers (dont use letters)[/b][/red]\n"
)
LOG.info("Exiting the function, try again")
sys.exit(0)

prompt_question = (
f"\n\n[b][blue]Are you sure [/b][/blue]you want to perform this operation?. "
f"\nThis will extend the deadline by [b][blue]{extend_deadline} days[/b][/blue]."
"\nYou can only extend the data availability a maximum of [b][blue]3 times[/b][/blue], this consumes one of those times."
"\nYou can only extend the data availability a maximum of "
"[b][blue]3 times[/b][/blue], this consumes one of those times."
)

dds_cli.utils.console.print(prompt_question)
Expand Down

0 comments on commit 2e25400

Please sign in to comment.