mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Removed deprecated `current` attribute of scoped_session
This commit is contained in:
@@ -70,7 +70,7 @@ def quotacheck(sa_session, users, engine, object_store):
|
||||
if __name__ == "__main__":
|
||||
print("Loading Galaxy model...")
|
||||
model, object_store, engine = init()
|
||||
sa_session = model.context.current
|
||||
sa_session = model.context
|
||||
|
||||
if not args.username and not args.email:
|
||||
user_count = sa_session.query(model.User).count()
|
||||
|
||||
Reference in New Issue
Block a user