Commit 9c3a3c04 authored by echel0n's avatar echel0n

Resolved sqlite3.IntegrityError: NOT NULL constraint failed: history.release_group

Fixed issue #378
parent ef9a6cb9
......@@ -123,7 +123,7 @@ class History:
'resource': resource,
'provider': provider,
'version': version,
'release_group': release_group
'release_group': release_group or ''
}))
@staticmethod
......@@ -160,7 +160,7 @@ class History:
:param version: Version of file (defaults to -1)
"""
provider = 'unknown'
provider = ''
dbData = session.query(MainDB.History).filter(MainDB.History.resource.contains(os.path.basename(filename).rpartition(".")[0])).first()
if dbData:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment