Skip to content

Commit

Permalink
Merge pull request #410 from AI4Bharat/translation_bugs
Browse files Browse the repository at this point in the history
Translation bugs
  • Loading branch information
Shruti1229 authored Jul 24, 2023
2 parents a631d04 + c72e263 commit 3b334c7
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 12 deletions.
4 changes: 0 additions & 4 deletions backend/backend/celery.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
18 changes: 18 additions & 0 deletions backend/project/migrations/0012_alter_project_title.py
Original file line number Diff line number Diff line change
@@ -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),
),
]
2 changes: 1 addition & 1 deletion backend/project/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion backend/project/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
6 changes: 0 additions & 6 deletions backend/voiceover/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 3b334c7

Please sign in to comment.