mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Fix UP031 errors
reported by ruff 0.8.0 .
This commit is contained in:
@@ -74,9 +74,9 @@ if __name__ == "__main__":
|
||||
|
||||
if not args.username and not args.email:
|
||||
user_count = sa_session.query(model.User).count()
|
||||
print("Processing %i users..." % user_count)
|
||||
print(f"Processing {user_count} users...")
|
||||
for i, user in enumerate(sa_session.query(model.User).enable_eagerloads(False).yield_per(1000)):
|
||||
print("%3i%%" % int(float(i) / user_count * 100), end=" ")
|
||||
print(f"{int(float(i) / user_count * 100):3d}%", end=" ")
|
||||
quotacheck(sa_session, user, engine, object_store)
|
||||
print("100% complete")
|
||||
object_store.shutdown()
|
||||
|
||||
Reference in New Issue
Block a user