Use consistent naming scheme for methods/functions

This commit is contained in:
rubenwardy
2023-06-18 21:56:19 +01:00
parent e0b25054dc
commit 8585357942
84 changed files with 629 additions and 639 deletions

View File

@@ -128,7 +128,7 @@ class QueryBuilder:
def toJson(package: Package):
release_id = releases.get(package.id)
return package.getAsDictionaryShort(current_app.config["BASE_URL"], release_id=release_id, no_load=True)
return package.as_short_dict(current_app.config["BASE_URL"], release_id=release_id, no_load=True)
return [toJson(pkg) for pkg in packages]