Add option to filter packages by license

This commit is contained in:
rubenwardy
2024-06-05 19:27:09 +01:00
parent 57ed2fc416
commit 380f009529
5 changed files with 51 additions and 17 deletions

View File

@@ -961,7 +961,7 @@ class MinetestRelease(db.Model):
}
@classmethod
def get(cls, version, protocol_num):
def get(cls, version: typing.Optional[str], protocol_num: typing.Optional[str]) -> typing.Optional["MinetestRelease"]:
if version:
parts = version.strip().split(".")
if len(parts) >= 2: