django-to-galaxy 0.6.7__py3-none-any.whl → 0.6.8__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.
Potentially problematic release.
This version of django-to-galaxy might be problematic. Click here for more details.
- django_to_galaxy/admin/invocation.py +7 -16
- django_to_galaxy/models/invocation.py +4 -1
- {django_to_galaxy-0.6.7.dist-info → django_to_galaxy-0.6.8.dist-info}/METADATA +1 -1
- {django_to_galaxy-0.6.7.dist-info → django_to_galaxy-0.6.8.dist-info}/RECORD +6 -6
- {django_to_galaxy-0.6.7.dist-info → django_to_galaxy-0.6.8.dist-info}/LICENSE +0 -0
- {django_to_galaxy-0.6.7.dist-info → django_to_galaxy-0.6.8.dist-info}/WHEEL +0 -0
|
@@ -36,22 +36,13 @@ class InvocationAdmin(GalaxyElementAdmin):
|
|
|
36
36
|
|
|
37
37
|
@admin.display(description="Percentage Done")
|
|
38
38
|
def display_percentage_done(self, obj):
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
)
|
|
47
|
-
except ZeroDivisionError:
|
|
48
|
-
return format_html(
|
|
49
|
-
"""
|
|
50
|
-
<progress value="{0}" max="100"></progress>
|
|
51
|
-
<span style="font-weight:bold">{0}%</span>
|
|
52
|
-
""",
|
|
53
|
-
0,
|
|
54
|
-
)
|
|
39
|
+
return format_html(
|
|
40
|
+
"""
|
|
41
|
+
<progress value="{0}" max="100"></progress>
|
|
42
|
+
<span style="font-weight:bold">{0}%</span>
|
|
43
|
+
""",
|
|
44
|
+
obj.percentage_done,
|
|
45
|
+
)
|
|
55
46
|
|
|
56
47
|
def _get_message_invocation(
|
|
57
48
|
self,
|
|
@@ -87,7 +87,10 @@ class Invocation(models.Model):
|
|
|
87
87
|
for step in self.step_jobs_summary:
|
|
88
88
|
for key in step["states"].keys():
|
|
89
89
|
count_states[key] += 1
|
|
90
|
-
|
|
90
|
+
try:
|
|
91
|
+
percentage_done = count_states.get("ok", 0) / len(self.step_jobs_summary)
|
|
92
|
+
except ZeroDivisionError:
|
|
93
|
+
percentage_done = 0
|
|
91
94
|
if percentage_done == 1:
|
|
92
95
|
self.status = DONE
|
|
93
96
|
self.save()
|
|
@@ -5,7 +5,7 @@ django_to_galaxy/admin/galaxy_instance.py,sha256=yVlbA5fVbMQBKyKwaFJM3CRFQ2HDjzY
|
|
|
5
5
|
django_to_galaxy/admin/galaxy_output_file.py,sha256=bnpwlAH8cQe6nkWIln8iSFDtVyr0kqI5P-QNbISWCfE,2321
|
|
6
6
|
django_to_galaxy/admin/galaxy_user.py,sha256=NO0qzhsk6WVnWwvXuodGPLi0o4CPbg0yTZh4VxYvH0k,7278
|
|
7
7
|
django_to_galaxy/admin/history.py,sha256=eVN-ZCAju0_1ygeSnHEie3a7iy7LoW3bOhWQyU20XTw,2562
|
|
8
|
-
django_to_galaxy/admin/invocation.py,sha256=
|
|
8
|
+
django_to_galaxy/admin/invocation.py,sha256=Rgtkyyl2WrDZN-fF_u5lPlicGe341UGwBMbI06nZG78,4821
|
|
9
9
|
django_to_galaxy/admin/tag.py,sha256=jqQ64sLieq4CSRFHesNt33SqTNnA-z3oiQuj7Ncx_jU,315
|
|
10
10
|
django_to_galaxy/admin/workflow.py,sha256=6t9z7JQPv-D7tzyi9WNUxEQXdetGlNCSzNIoX1SCAdM,1360
|
|
11
11
|
django_to_galaxy/api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -46,7 +46,7 @@ django_to_galaxy/models/galaxy_instance.py,sha256=931iyrqJxK6YCbkaC6FPdqMRI_hhGQ
|
|
|
46
46
|
django_to_galaxy/models/galaxy_output_file.py,sha256=oAq7HZBk3svG88NagFpkpiB5TQoncbpGFxCCTFoCzyo,1915
|
|
47
47
|
django_to_galaxy/models/galaxy_user.py,sha256=Cz6wmyD3PvltFi2yKEKr2z7YTsxlmnNV8xwA0Gltu_o,3264
|
|
48
48
|
django_to_galaxy/models/history.py,sha256=RF661ULnSMO6wvEutZ-qVDY-9vxu-JcWiGbN7MwdVvI,2635
|
|
49
|
-
django_to_galaxy/models/invocation.py,sha256=
|
|
49
|
+
django_to_galaxy/models/invocation.py,sha256=spBky_aS1iQV8szKc-K8d-Q7Igk7cuMXqX9KO6lvqsA,7703
|
|
50
50
|
django_to_galaxy/models/workflow.py,sha256=1Ok0TSSIM-LJbaY1Vm19YVg_WwDxznbLDcXI71S_IL8,1891
|
|
51
51
|
django_to_galaxy/schemas/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
52
52
|
django_to_galaxy/schemas/dataset.py,sha256=yjwLJGb487VJDXoXGg8fG_TW6TJPeyeGtd9vofU-7HI,396
|
|
@@ -55,7 +55,7 @@ django_to_galaxy/templates/admin/import_workflows.html,sha256=YB101H99EOR8td_Dzf
|
|
|
55
55
|
django_to_galaxy/urls.py,sha256=ydMl_0qSyz8GSGkWpiSzU3khqj9mPyZacx532JybLHk,106
|
|
56
56
|
django_to_galaxy/utils.py,sha256=gjUzzqfpili66CY7vFyseqHOD9vqWg_2tzWAiTe3pNE,1625
|
|
57
57
|
django_to_galaxy/version.py,sha256=O9WfyDkb-iJLGWlnKx2K7kFtcDgFCboBiFm553-3Sjk,111
|
|
58
|
-
django_to_galaxy-0.6.
|
|
59
|
-
django_to_galaxy-0.6.
|
|
60
|
-
django_to_galaxy-0.6.
|
|
61
|
-
django_to_galaxy-0.6.
|
|
58
|
+
django_to_galaxy-0.6.8.dist-info/LICENSE,sha256=Er3Bp2y6Wf31e0s1-Tdu_d6Gd89FtTizmGUJzGQkWvo,34498
|
|
59
|
+
django_to_galaxy-0.6.8.dist-info/METADATA,sha256=cI5_FiVzbmrZi6cm8KDce_ztbCB5GCyJMs0dkzqdHCY,764
|
|
60
|
+
django_to_galaxy-0.6.8.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
61
|
+
django_to_galaxy-0.6.8.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|