Cast 'version' in get_build_from_nsvc to str.

This commit is contained in:
Jan Kaluza
2018-08-22 09:45:00 +02:00
parent 8e5b9334e6
commit 78f94d117b

View File

@@ -297,7 +297,7 @@ class ModuleBuild(MBSBase):
filter_by method.
"""
return session.query(ModuleBuild).filter_by(
name=name, stream=stream, version=version, context=context, **kwargs).first()
name=name, stream=stream, version=str(version), context=context, **kwargs).first()
def mmd(self):
try: