Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
guerler committed Mar 22, 2017
1 parent 5028312 commit 76bd515
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
10 changes: 5 additions & 5 deletions lib/galaxy/webapps/galaxy/api/users.py
Expand Up @@ -15,7 +15,7 @@
from sqlalchemy import false, true, and_, or_

from galaxy import exceptions, model, util, web
from galaxy.exceptions import MessageException
from galaxy.exceptions import MessageException, ObjectInvalid
from galaxy.managers import users
from galaxy.security.validate_user_input import validate_email
from galaxy.security.validate_user_input import validate_password
Expand Down Expand Up @@ -682,13 +682,13 @@ def set_communication(self, trans, id, payload={}, **kwd):
@expose_api
def get_custom_builds_metadata(self, trans, id, payload={}, **kwd):
""" Returns meta data for custom builds. """
user = self._get_user(trans, id)
self._get_user(trans, id)
installed_builds = []
for build in glob.glob( os.path.join(trans.app.config.len_file_path, "*.len") ):
installed_builds.append( os.path.basename(build).split(".len")[0] )
fasta_hdas = trans.sa_session.query( model.HistoryDatasetAssociation ) \
.filter_by( history=trans.history, extension="fasta", deleted=False ) \
.order_by( model.HistoryDatasetAssociation.hid.desc() )
.filter_by( history=trans.history, extension="fasta", deleted=False ) \
.order_by( model.HistoryDatasetAssociation.hid.desc() )
return {
'installed_builds' : [ { 'label' : ins, 'value' : ins } for ins in installed_builds ],
'fasta_hdas' : [ { 'label' : '%s: %s' % ( hda.hid, hda.name ), 'value' : trans.security.encode_id( hda.id ) } for hda in fasta_hdas ],
Expand All @@ -701,7 +701,7 @@ def get_custom_builds(self, trans, id, payload={}, **kwd):
dbkeys = json.loads(user.preferences['dbkeys']) if 'dbkeys' in user.preferences else {}
dbkey_collection = []
for key, attributes in dbkeys.items():
attributes['id'] = key;
attributes['id'] = key
dbkey_collection.append(attributes)
return dbkey_collection

Expand Down
4 changes: 0 additions & 4 deletions lib/galaxy/webapps/galaxy/controllers/user.py
Expand Up @@ -2,21 +2,17 @@
Contains the user interface in the Universe class
"""

import glob
import logging
import os
import random
import socket
import urllib
from datetime import datetime, timedelta
from json import dumps, loads

from markupsafe import escape
from sqlalchemy import and_, or_, func, true
from galaxy import model
from galaxy import util
from galaxy import web
from galaxy.exceptions import ObjectInvalid
from galaxy.queue_worker import send_local_control_task
from galaxy.security.validate_user_input import (transform_publicname,
validate_email,
Expand Down

0 comments on commit 76bd515

Please sign in to comment.