django-transcribe 0.8.0__py3-none-any.whl → 0.8.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {django_transcribe-0.8.0.dist-info → django_transcribe-0.8.2.dist-info}/METADATA +1 -1
- {django_transcribe-0.8.0.dist-info → django_transcribe-0.8.2.dist-info}/RECORD +8 -8
- {django_transcribe-0.8.0.dist-info → django_transcribe-0.8.2.dist-info}/WHEEL +1 -1
- transcribe/__init__.py +1 -1
- transcribe/models.py +7 -13
- {django_transcribe-0.8.0.dist-info → django_transcribe-0.8.2.dist-info}/AUTHORS +0 -0
- {django_transcribe-0.8.0.dist-info → django_transcribe-0.8.2.dist-info}/LICENSE +0 -0
- {django_transcribe-0.8.0.dist-info → django_transcribe-0.8.2.dist-info}/top_level.txt +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
transcribe/__init__.py,sha256=
|
|
1
|
+
transcribe/__init__.py,sha256=1isuMN80nbm3Ivpv9Wx7GA5zko2BvLw-COJoQiQ0CEU,78
|
|
2
2
|
transcribe/admin.py,sha256=qPLL0XNzK0abIRBVRtjQq8SaEK2gzb_yyshafbxk9B4,6766
|
|
3
3
|
transcribe/api.py,sha256=2m_y44ilQh87CWksHHqiE4A14javR8omlXEXm65lmC4,74
|
|
4
4
|
transcribe/apps.py,sha256=XUdPQkCjpqWAKDCIaE6Mh8Q4xN5upKv95MG1u2_5pig,246
|
|
@@ -6,7 +6,7 @@ transcribe/diff_match_patch.py,sha256=HZC5DNab5OVwbB4Zc7G17l1OHbBlH2g9-xOtT1zkQ1
|
|
|
6
6
|
transcribe/filters.py,sha256=_ANh6XGDXgmD_wxQo5IPReQsv3_MDqThOwB06LKfbac,1264
|
|
7
7
|
transcribe/forms.py,sha256=6j-MtheDtDeBo9B_hlKhkWkWkKVJsLrJIlSsZAlB7ic,5612
|
|
8
8
|
transcribe/middleware.py,sha256=3SvvNmJMlVohD_4Liv1yT3hc_nudpvt2giAE7Wt9rx4,485
|
|
9
|
-
transcribe/models.py,sha256=
|
|
9
|
+
transcribe/models.py,sha256=fvSdl-9N04T-tVSMWVCWF6xXKpf7tWHdg__G6xvjxUA,38592
|
|
10
10
|
transcribe/settings.py,sha256=TNRFJstZF9X3l5qZSzv3xcrEuPMmOQbB-59mqADn9Dk,569
|
|
11
11
|
transcribe/signals.py,sha256=pvRSWobg__Jw5ZvlFBZZAw3rDk1dvVyiq8Ka2lBGeSY,1105
|
|
12
12
|
transcribe/urls.py,sha256=xgTkOdeC1cWmQAMzAp-VRwvmwyEAfEabncGgHyZiAL0,2040
|
|
@@ -143,9 +143,9 @@ transcribe/views/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,
|
|
|
143
143
|
transcribe/views/mixins.py,sha256=QmFDhWb5VCEaGatLdbsTK72jiBG2OKrlncnz79FUmto,2727
|
|
144
144
|
transcribe/views/reports.py,sha256=7YD5E6CPsIfWP8hG8IFTek29cM2T29NHuowAdlTAyBs,13408
|
|
145
145
|
transcribe/views/web.py,sha256=WoVs-iwYc2hesuBxCmwfo-wza15C1fiMRY6S0TAdxQs,15213
|
|
146
|
-
django_transcribe-0.8.
|
|
147
|
-
django_transcribe-0.8.
|
|
148
|
-
django_transcribe-0.8.
|
|
149
|
-
django_transcribe-0.8.
|
|
150
|
-
django_transcribe-0.8.
|
|
151
|
-
django_transcribe-0.8.
|
|
146
|
+
django_transcribe-0.8.2.dist-info/AUTHORS,sha256=rNmFConshTlNpyhcu4CKZSeQQMwuyVYXbeqXgRko-Yc,640
|
|
147
|
+
django_transcribe-0.8.2.dist-info/LICENSE,sha256=I9xp13yeayqZikrv7rQrzsDWviTwy1R0phFlKtM1meg,1472
|
|
148
|
+
django_transcribe-0.8.2.dist-info/METADATA,sha256=OBbssrIcSQeK78BvCgxKLLe06PQPlCLpMUK2sjjxZVo,1021
|
|
149
|
+
django_transcribe-0.8.2.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
|
|
150
|
+
django_transcribe-0.8.2.dist-info/top_level.txt,sha256=NljSay7zO6czcjqjVmivw6VW58aXlYHVZQvnwmpy08g,11
|
|
151
|
+
django_transcribe-0.8.2.dist-info/RECORD,,
|
transcribe/__init__.py
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
default_app_config = 'transcribe.apps.transcribeConfig'
|
|
2
|
-
__version__ = '0.8.
|
|
2
|
+
__version__ = '0.8.2'
|
transcribe/models.py
CHANGED
|
@@ -557,28 +557,20 @@ class Project(TimeStampedModel):
|
|
|
557
557
|
|
|
558
558
|
# in progress tasks that are recent
|
|
559
559
|
expired_dt = timezone.now() - timedelta(days=settings.TASK_EXPIRE_DAYS)
|
|
560
|
-
|
|
560
|
+
task_ids_being_reviewed_and_recent = self.tasks.filter(
|
|
561
561
|
usertasks__status='in progress',
|
|
562
562
|
usertasks__task_type='review',
|
|
563
563
|
usertasks__modified__gte=expired_dt,
|
|
564
564
|
).values_list('id', flat=True)
|
|
565
565
|
|
|
566
|
-
#
|
|
567
|
-
#
|
|
566
|
+
# filter for tasks that are ready for review, not already skipped,
|
|
567
|
+
# and that haven't recently entered the review process
|
|
568
568
|
task = (
|
|
569
569
|
self.tasks.filter(id__in=task_ids_ready_for_review)
|
|
570
570
|
.exclude(id__in=task_ids_already_skipped)
|
|
571
|
-
.exclude(id__in=
|
|
571
|
+
.exclude(id__in=task_ids_being_reviewed_and_recent)
|
|
572
572
|
.first()
|
|
573
573
|
)
|
|
574
|
-
if not task:
|
|
575
|
-
# if there was no task available in our first priority
|
|
576
|
-
# we will assign a task that is in the process of being reviewed
|
|
577
|
-
task = (
|
|
578
|
-
self.tasks.filter(id__in=task_ids_ready_for_review)
|
|
579
|
-
.exclude(id__in=task_ids_already_skipped)
|
|
580
|
-
.first()
|
|
581
|
-
)
|
|
582
574
|
return task
|
|
583
575
|
|
|
584
576
|
@cached_property
|
|
@@ -594,7 +586,9 @@ class Project(TimeStampedModel):
|
|
|
594
586
|
|
|
595
587
|
def get_image_urls(self, task):
|
|
596
588
|
# get a few tasks before and after task
|
|
597
|
-
tasks = Task.objects.filter(
|
|
589
|
+
tasks = Task.objects.filter(
|
|
590
|
+
project=self, pk__gte=(task.pk - 5)
|
|
591
|
+
).order_by('pk')[:10]
|
|
598
592
|
urls = []
|
|
599
593
|
for task in tasks:
|
|
600
594
|
urls.append(task.file.url)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|