mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-27 23:11:09 +00:00
validate_solutions.py: os.getenv('GITHUB_TOKEN', '') (#10546)
* validate_solutions.py: os.getenv('GITHUB_TOKEN', '') @tianyizheng02 * updating DIRECTORY.md * f this --------- Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
This commit is contained in:
parent
b2636d90b3
commit
68e6d5ad7e
|
@ -373,6 +373,7 @@
|
||||||
* [Electric Conductivity](electronics/electric_conductivity.py)
|
* [Electric Conductivity](electronics/electric_conductivity.py)
|
||||||
* [Electric Power](electronics/electric_power.py)
|
* [Electric Power](electronics/electric_power.py)
|
||||||
* [Electrical Impedance](electronics/electrical_impedance.py)
|
* [Electrical Impedance](electronics/electrical_impedance.py)
|
||||||
|
* [Ic 555 Timer](electronics/ic_555_timer.py)
|
||||||
* [Ind Reactance](electronics/ind_reactance.py)
|
* [Ind Reactance](electronics/ind_reactance.py)
|
||||||
* [Ohms Law](electronics/ohms_law.py)
|
* [Ohms Law](electronics/ohms_law.py)
|
||||||
* [Real And Reactive Power](electronics/real_and_reactive_power.py)
|
* [Real And Reactive Power](electronics/real_and_reactive_power.py)
|
||||||
|
@ -622,6 +623,7 @@
|
||||||
* [Is Ip V4 Address Valid](maths/is_ip_v4_address_valid.py)
|
* [Is Ip V4 Address Valid](maths/is_ip_v4_address_valid.py)
|
||||||
* [Is Square Free](maths/is_square_free.py)
|
* [Is Square Free](maths/is_square_free.py)
|
||||||
* [Jaccard Similarity](maths/jaccard_similarity.py)
|
* [Jaccard Similarity](maths/jaccard_similarity.py)
|
||||||
|
* [Joint Probability Distribution](maths/joint_probability_distribution.py)
|
||||||
* [Juggler Sequence](maths/juggler_sequence.py)
|
* [Juggler Sequence](maths/juggler_sequence.py)
|
||||||
* [Karatsuba](maths/karatsuba.py)
|
* [Karatsuba](maths/karatsuba.py)
|
||||||
* [Krishnamurthy Number](maths/krishnamurthy_number.py)
|
* [Krishnamurthy Number](maths/krishnamurthy_number.py)
|
||||||
|
@ -675,8 +677,8 @@
|
||||||
* [Radians](maths/radians.py)
|
* [Radians](maths/radians.py)
|
||||||
* [Radix2 Fft](maths/radix2_fft.py)
|
* [Radix2 Fft](maths/radix2_fft.py)
|
||||||
* [Remove Digit](maths/remove_digit.py)
|
* [Remove Digit](maths/remove_digit.py)
|
||||||
* [Rkf45](maths/rkf45.py)
|
|
||||||
* [Runge Kutta](maths/runge_kutta.py)
|
* [Runge Kutta](maths/runge_kutta.py)
|
||||||
|
* [Runge Kutta Fehlberg 45](maths/runge_kutta_fehlberg_45.py)
|
||||||
* [Segmented Sieve](maths/segmented_sieve.py)
|
* [Segmented Sieve](maths/segmented_sieve.py)
|
||||||
* Series
|
* Series
|
||||||
* [Arithmetic](maths/series/arithmetic.py)
|
* [Arithmetic](maths/series/arithmetic.py)
|
||||||
|
|
|
@ -55,7 +55,7 @@ def added_solution_file_path() -> list[pathlib.Path]:
|
||||||
solution_file_paths = []
|
solution_file_paths = []
|
||||||
headers = {
|
headers = {
|
||||||
"Accept": "application/vnd.github.v3+json",
|
"Accept": "application/vnd.github.v3+json",
|
||||||
"Authorization": "token " + os.environ["GITHUB_TOKEN"],
|
"Authorization": f"token {os.getenv('GITHUB_TOKEN', '')}",
|
||||||
}
|
}
|
||||||
files = requests.get(get_files_url(), headers=headers).json()
|
files = requests.get(get_files_url(), headers=headers).json()
|
||||||
for file in files:
|
for file in files:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user