diff --git a/backend/backend/celery.py b/backend/backend/celery.py index e722e4e2..9290ec31 100644 --- a/backend/backend/celery.py +++ b/backend/backend/celery.py @@ -27,10 +27,6 @@ "task": "send_new_tasks_mail", "schedule": crontab(minute=0, hour=1), # execute everyday at 1 am }, - "Delete_temp_data_from_azure": { - "task": "delete_temp_data_from_azure", - "schedule": crontab(minute=0, hour=22), # execute everyday at 10 pm - }, } celery_app.autodiscover_tasks() diff --git a/backend/project/migrations/0012_alter_project_title.py b/backend/project/migrations/0012_alter_project_title.py new file mode 100644 index 00000000..27ab5fe3 --- /dev/null +++ b/backend/project/migrations/0012_alter_project_title.py @@ -0,0 +1,18 @@ +# Generated by Django 3.2.16 on 2023-07-24 13:28 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("project", "0011_project_video_integration"), + ] + + operations = [ + migrations.AlterField( + model_name="project", + name="title", + field=models.CharField(help_text="Project Title", max_length=150), + ), + ] diff --git a/backend/project/models.py b/backend/project/models.py index 7508bd02..1b28c2a0 100644 --- a/backend/project/models.py +++ b/backend/project/models.py @@ -37,7 +37,7 @@ class Project(models.Model): Model for Project Management """ - title = models.CharField(max_length=100, help_text=("Project Title")) + title = models.CharField(max_length=150, help_text=("Project Title")) description = models.TextField( max_length=1000, null=True, blank=True, help_text=("Project Description") diff --git a/backend/project/views.py b/backend/project/views.py index 69777313..5063a19b 100644 --- a/backend/project/views.py +++ b/backend/project/views.py @@ -972,7 +972,7 @@ def create(self, request, pk=None, *args, **kwargs): ) project = Project( - title=title, + title=title.replace("\n", ""), organization_id=organization, created_by=request.user, default_transcript_type=default_transcript_type, diff --git a/backend/voiceover/tasks.py b/backend/voiceover/tasks.py index de5b0a7e..f47d8f7a 100644 --- a/backend/voiceover/tasks.py +++ b/backend/voiceover/tasks.py @@ -36,9 +36,3 @@ def celery_integration(file_name, voice_over_obj_id, video, task_id): voice_over_obj.save() task.status = "COMPLETE" task.save() - - -@shared_task() -def delete_temp_data_from_azure(): - for i in 10: - print(i)