Skip to content

Commit 776e9e6

Browse files
authored
Revert "validate_solutions.py: os.getenv('GITHUB_TOKEN', '') (#10546)"
This reverts commit 68e6d5a.
1 parent 89d12df commit 776e9e6

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

Diff for: DIRECTORY.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,6 @@
373373
* [Electric Conductivity](electronics/electric_conductivity.py)
374374
* [Electric Power](electronics/electric_power.py)
375375
* [Electrical Impedance](electronics/electrical_impedance.py)
376-
* [Ic 555 Timer](electronics/ic_555_timer.py)
377376
* [Ind Reactance](electronics/ind_reactance.py)
378377
* [Ohms Law](electronics/ohms_law.py)
379378
* [Real And Reactive Power](electronics/real_and_reactive_power.py)
@@ -623,7 +622,6 @@
623622
* [Is Ip V4 Address Valid](maths/is_ip_v4_address_valid.py)
624623
* [Is Square Free](maths/is_square_free.py)
625624
* [Jaccard Similarity](maths/jaccard_similarity.py)
626-
* [Joint Probability Distribution](maths/joint_probability_distribution.py)
627625
* [Juggler Sequence](maths/juggler_sequence.py)
628626
* [Karatsuba](maths/karatsuba.py)
629627
* [Krishnamurthy Number](maths/krishnamurthy_number.py)
@@ -677,8 +675,8 @@
677675
* [Radians](maths/radians.py)
678676
* [Radix2 Fft](maths/radix2_fft.py)
679677
* [Remove Digit](maths/remove_digit.py)
678+
* [Rkf45](maths/rkf45.py)
680679
* [Runge Kutta](maths/runge_kutta.py)
681-
* [Runge Kutta Fehlberg 45](maths/runge_kutta_fehlberg_45.py)
682680
* [Segmented Sieve](maths/segmented_sieve.py)
683681
* Series
684682
* [Arithmetic](maths/series/arithmetic.py)

Diff for: scripts/validate_solutions.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def added_solution_file_path() -> list[pathlib.Path]:
5555
solution_file_paths = []
5656
headers = {
5757
"Accept": "application/vnd.github.v3+json",
58-
"Authorization": f"token {os.getenv('GITHUB_TOKEN', '')}",
58+
"Authorization": "token " + os.environ["GITHUB_TOKEN"],
5959
}
6060
files = requests.get(get_files_url(), headers=headers).json()
6161
for file in files:

0 commit comments

Comments
 (0)