mirror of
https://codeberg.org/Mo8it/AdvLabDB.git
synced 2024-12-02 22:33:05 +00:00
Remove nosec comments
This commit is contained in:
parent
570e4e121e
commit
fcfd282e79
2 changed files with 6 additions and 6 deletions
|
@ -201,7 +201,7 @@ def _generate_test_db():
|
|||
roles=[assistantRole],
|
||||
first_name=name[0],
|
||||
last_name=name[1],
|
||||
mobile_phone_number="01" + "".join(str(randint(0, 9)) for i in range(10)), # nosec: B311
|
||||
mobile_phone_number="01" + "".join(str(randint(0, 9)) for i in range(10)),
|
||||
active_semester=ws,
|
||||
)
|
||||
|
||||
|
@ -219,16 +219,16 @@ def _generate_test_db():
|
|||
special = False
|
||||
semester = semester_experiment.semester
|
||||
if semester.label == "SS":
|
||||
month = randint(3, 8) # nosec: B311
|
||||
month = randint(3, 8)
|
||||
if month <= 4:
|
||||
special = True
|
||||
else:
|
||||
month = randint(9, 12) # nosec: B311
|
||||
month = randint(9, 12)
|
||||
if month <= 10:
|
||||
special = True
|
||||
|
||||
year = 2000 + semester.year
|
||||
day = randint(1, 28) # nosec: B311
|
||||
day = randint(1, 28)
|
||||
for appointment_date in (date(year, month, day), date(year, month, day + 1)):
|
||||
db_add(
|
||||
Appointment(
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
import subprocess # nosec 404
|
||||
import subprocess
|
||||
|
||||
import click
|
||||
|
||||
|
@ -13,7 +13,7 @@ from cli.test.generate_test_db.main import _generate_test_db
|
|||
class Manage:
|
||||
@staticmethod
|
||||
def run(command: str, **kwargs):
|
||||
return subprocess.run(command, shell=True, check=False, **kwargs) # nosec B602
|
||||
return subprocess.run(command, shell=True, check=False, **kwargs)
|
||||
|
||||
@staticmethod
|
||||
def box(message: str):
|
||||
|
|
Loading…
Reference in a new issue