Skip to content

small change to stop crashing

4b510ba
Select commit
Loading
Failed to load commit list.
Open

Cron job #898

small change to stop crashing
4b510ba
Select commit
Loading
Failed to load commit list.
codefactor.io / CodeFactor failed Mar 18, 2025 in 5s

67 issues fixed. 69 issues found.

Annotations

Check notice on line 54 in src/cron/courses_scraper.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

src/cron/courses_scraper.py#L54

Expression "[parts.append([]) for _ in range(n)]" is assigned to nothing (expression-not-assigned)

Check notice on line 77 in src/cron/headless_login.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

src/cron/headless_login.py#L77

Trailing newlines (trailing-newlines)

Check notice on line 325 in src/cron/no_login.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

src/cron/no_login.py#L325

String statement has no effect (pointless-string-statement)

Check notice on line 141 in src/cron/courses_scraper.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

src/cron/courses_scraper.py#L141

String statement has no effect (pointless-string-statement)

Check notice on line 152 in src/cron/no_login.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

src/cron/no_login.py#L152

String statement has no effect (pointless-string-statement)

Check notice on line 360 in src/cron/courses_scraper.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

src/cron/courses_scraper.py#L360

String statement has no effect (pointless-string-statement)

Check notice on line 285 in src/cron/courses_scraper.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

src/cron/courses_scraper.py#L285

Expression "[to_check.append(i) for i in j[pathway]['One Of1'].values()]" is assigned to nothing (expression-not-assigned)

Check notice on line 353 in src/cron/no_login.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

src/cron/no_login.py#L353

String statement has no effect (pointless-string-statement)

Check notice on line 12 in src/cron/Dockerfile

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

src/cron/Dockerfile#L12

Delete the apt-get lists after installing something. (DL3009)

Check notice on line 55 in src/cron/courses_scraper.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

src/cron/courses_scraper.py#L55

Consider using enumerate instead of iterating with range and len (consider-using-enumerate)

Check notice on line 6 in src/cron/ci_scraper.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

src/cron/ci_scraper.py#L6

String statement has no effect (pointless-string-statement)

Check notice on line 279 in src/cron/courses_scraper.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

src/cron/courses_scraper.py#L279

Expression "[to_check.append(i) for i in j[pathway]['Remaining'].values()]" is assigned to nothing (expression-not-assigned)

Check notice on line 19 in src/cron/ci_scraper.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

src/cron/ci_scraper.py#L19

No exception type(s) specified (bare-except)

Check notice on line 281 in src/cron/courses_scraper.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

src/cron/courses_scraper.py#L281

Expression "[to_check.append(i) for i in j[pathway]['Required'].values()]" is assigned to nothing (expression-not-assigned)

Check notice on line 305 in src/cron/courses_scraper.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

src/cron/courses_scraper.py#L305

Expression "[to_check.append(prefix + ' ' + code.replace('X', str(i))) for i in range(0, 10)]" is assigned to nothing (expression-not-assigned)

Check notice on line 103 in src/cron/courses_scraper.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

src/cron/courses_scraper.py#L103

String statement has no effect (pointless-string-statement)

Check failure on line 25 in src/cron/goldy_parse.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

src/cron/goldy_parse.py#L25

Call to requests with verify=False disabling SSL certificate checks, security issue. (B501)

Check notice on line 16 in src/cron/no_login.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

src/cron/no_login.py#L16

String statement has no effect (pointless-string-statement)

Check notice on line 346 in src/cron/courses_scraper.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

src/cron/courses_scraper.py#L346

String statement has no effect (pointless-string-statement)

Check notice on line 77 in src/cron/no_login.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

src/cron/no_login.py#L77

String statement has no effect (pointless-string-statement)

Check notice on line 379 in src/cron/new_parse.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

src/cron/new_parse.py#L310-L379

Complex Method

Check notice on line 217 in src/cron/courses_scraper.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

src/cron/courses_scraper.py#L217

String statement has no effect (pointless-string-statement)

Check notice on line 34 in src/cron/ci_scraper.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

src/cron/ci_scraper.py#L34

String statement has no effect (pointless-string-statement)

Check notice on line 52 in src/cron/no_login.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

src/cron/no_login.py#L52

String statement has no effect (pointless-string-statement)

Check notice on line 94 in src/cron/courses_scraper.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

src/cron/courses_scraper.py#L94

String statement has no effect (pointless-string-statement)