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.

@@ -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
- try:
40
- return format_html(
41
- """
42
- <progress value="{0}" max="100"></progress>
43
- <span style="font-weight:bold">{0}%</span>
44
- """,
45
- obj.percentage_done,
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
- percentage_done = count_states.get("ok", 0) / len(self.step_jobs_summary)
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()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: django-to-galaxy
3
- Version: 0.6.7
3
+ Version: 0.6.8
4
4
  Summary: Django extension that eases communication with Galaxy instance to execute workflows.
5
5
  Author: Kenzo-Hugo Hillion
6
6
  Author-email: hillion.kenzo@posteo.net
@@ -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=BsVrgMlnEisGcK3ni5oBbcL__yH0PsXYUkPNkIPpEsQ,5121
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=VfNeP_yplKlh0Uzx9ZYMOErpX7uH2yVOHvZhN94zN00,7620
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.7.dist-info/LICENSE,sha256=Er3Bp2y6Wf31e0s1-Tdu_d6Gd89FtTizmGUJzGQkWvo,34498
59
- django_to_galaxy-0.6.7.dist-info/METADATA,sha256=wnFfuwrnXc-YA10ZGhBsgac0XRE5I9bojn3IhYwzO08,764
60
- django_to_galaxy-0.6.7.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
61
- django_to_galaxy-0.6.7.dist-info/RECORD,,
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,,