changeset 3:df30a2f1db55 draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_pangolearn commit dc532cabb939e70d29edb0812e74193aa604e813"
author iuc
date Mon, 30 Aug 2021 13:44:01 +0000
parents ed7a967cb11b
children 6e24e79d3d69
files data_manager/pangolearn_dm.py data_manager/pangolearn_dm.xml
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/data_manager/pangolearn_dm.py	Thu Jun 03 07:06:03 2021 +0000
+++ b/data_manager/pangolearn_dm.py	Mon Aug 30 13:44:01 2021 +0000
@@ -15,6 +15,8 @@
 def extract_date(tag_str):
     parts = tag_str.split("_")
     assert len(parts) < 3, "expected maximum of two parts, got " + str(parts)
+    # there are tags like: 2021-07-07-2
+    parts[0] = "-".join(parts[0].split("-")[:3])
     tag_date = datetime.datetime.strptime(parts[0], "%Y-%m-%d")
     if len(parts) == 2:
         version = int(parts[1])
--- a/data_manager/pangolearn_dm.xml	Thu Jun 03 07:06:03 2021 +0000
+++ b/data_manager/pangolearn_dm.xml	Mon Aug 30 13:44:01 2021 +0000
@@ -1,4 +1,4 @@
-<tool id="data_manager_pangolearn" name="PANGOlearn data manager" version="0.0.2" tool_type="manage_data" profile="20.01">
+<tool id="data_manager_pangolearn" name="PANGOlearn data manager" version="0.0.3" tool_type="manage_data" profile="20.01">
     <requirements>
         <requirement type="package" version="3.8">python</requirement>
         <requirement type="package" version="2.24.0">requests</requirement>