Repository 'apollo_create_account'
hg clone https://toolshed.g2.bx.psu.edu/repos/gga/apollo_create_account

Changeset 3:b8e4642ef5dd (2017-09-20)
Previous changeset 2:1e46cf5c24a5 (2017-09-20) Next changeset 4:08f8e19005a8 (2018-03-12)
Commit message:
planemo upload for repository https://github.com/galaxy-genome-annotation/galaxy-tools/tree/master/tools/apollo commit 079b759c21c00200544a6d8d5521617dce8ca70d
modified:
create_or_update_organism.py
b
diff -r 1e46cf5c24a5 -r b8e4642ef5dd create_or_update_organism.py
--- a/create_or_update_organism.py Wed Sep 20 09:08:15 2017 -0400
+++ b/create_or_update_organism.py Wed Sep 20 09:42:13 2017 -0400
[
@@ -44,7 +44,7 @@
 
     if org:
         has_perms = False
-        old_directory = org.directory
+        old_directory = org['directory']
         for user_owned_organism in gx_user.organismPermissions:
             if 'WRITE' in user_owned_organism['permissions']:
                 has_perms = True
@@ -65,7 +65,7 @@
             public=args.public
         )
         time.sleep(2)
-        if(args.remove_old_directory):
+        if args.remove_old_directory and args.jbrowse != old_directory:
             shutil.rmtree(old_directory)
 
         data = [wa.organisms.findOrganismById(org['id'])]