@@ -75,17 +75,17 @@ def create_empty_file(file_path: Path) -> None:
75
75
76
76
def get_input (day : int ) -> str | None :
77
77
if not (session_id := os .getenv ("AOC_SESSION_ID" )):
78
- print (f "[rouge]No session ID found, input can't be retrieved from AoC[/rouge]" )
78
+ print ("[rouge]No session ID found, input can't be retrieved from AoC[/rouge]" )
79
79
return
80
80
81
81
input_url = f"{ os .getenv ('AOC_BASE_URL' )} /day/{ day } /input"
82
- print (f "Retrieving input data from AoC..." )
82
+ print ("Retrieving input data from AoC..." )
83
83
response = httpx .get (input_url , cookies = {"session" : session_id })
84
84
if response .status_code != httpx .codes .OK :
85
85
print (f"[red]Error from AoC when retrieving input : { response } [/red]" )
86
86
return
87
87
88
- print (f "[green]Input data retrieved from AoC ![/green]" )
88
+ print ("[green]Input data retrieved from AoC ![/green]" )
89
89
return response .text
90
90
91
91
@@ -97,7 +97,7 @@ class AnswerResult(Enum):
97
97
98
98
def submit_answer (day : int , task : int , answer : int ) -> AnswerResult | None :
99
99
if not (session_id := os .getenv ("AOC_SESSION_ID" )):
100
- print (f "[rouge]No session ID found, input can't be retrieved from AoC[/rouge]" )
100
+ print ("[rouge]No session ID found, input can't be retrieved from AoC[/rouge]" )
101
101
return
102
102
103
103
print (f"Submitting answer for task { task } to AoC..." )
@@ -111,7 +111,7 @@ def submit_answer(day: int, task: int, answer: int) -> AnswerResult | None:
111
111
print (f"[red]Error from AoC when submitting solution : { response } [/red]" )
112
112
return
113
113
114
- print (f "[green]Answer submitted to AoC ![/green]" )
114
+ print ("[green]Answer submitted to AoC ![/green]" )
115
115
116
116
if "That's the right answer" in response .text :
117
117
return AnswerResult .RIGHT_ANSWER
0 commit comments