Skip to content

Commit

Permalink
remove useles print
Browse files Browse the repository at this point in the history
  • Loading branch information
maelys-buhler committed Mar 16, 2024
1 parent d6cd156 commit ec056d3
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
4 changes: 1 addition & 3 deletions api/.env.cicd
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
FRONTEND_URL=http://localhost:5173
BACKEND_URL=http://127.0.0.1:5173
DEBUG=True
SECRET_KEY=django-insecure-^=xy+akjdagtjisch+_5fku9!1aw)hhf_&feny8r3@6ds%rds
INIT_DATA_FOLDER=./data/csv/
IMAGES_FOLDER=./data/images/
SECRET_KEY=django-insecure-^=xy+akjdagtjisch+_5fku9!1aw)hhf_&feny8r3@6ds%rds
1 change: 0 additions & 1 deletion api/masteriqapp/migrations/0002_auto_20240303_1147.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ def load_initial_data(apps, schema_editor):
category_model = apps.get_model('masteriqapp', 'Category')

directory = settings.INIT_DATA_FOLDER
print(directory)
for filename in os.listdir(directory):
f = os.path.join(directory, filename)
if os.path.isfile(f) and filename.endswith(".csv"):
Expand Down
3 changes: 0 additions & 3 deletions api/masteriqapp/migrations/0004_auto_20240308_0923.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,9 @@ def add_category_images(apps, schema_editor):
for category in category_model.objects.all():
directory = settings.IMAGES_FOLDER
img_name = category.name.lower().replace(' ', '_') + ".*"
print(img_name)
f = os.path.join(directory, img_name)
files = glob.glob(f)
print("found: " + str(len(files)))
if len(files) > 0:
print(files[0])
category.image_path = os.path.join(files[0])
category.save()

Expand Down

0 comments on commit ec056d3

Please sign in to comment.