mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
fix commit references
This commit is contained in:
parent
e654ba786f
commit
cb30188623
@ -360,15 +360,15 @@ class IntegrationPluginBase(MixinBase, plugin.InvenTreePlugin):
|
|||||||
commit = self.get_plugin_commit()
|
commit = self.get_plugin_commit()
|
||||||
|
|
||||||
# resolve state
|
# resolve state
|
||||||
sign_state = getattr(GitStatus, commit['verified'], GitStatus.N)
|
sign_state = getattr(GitStatus, str(commit.get('verified')), GitStatus.N)
|
||||||
|
|
||||||
# set variables
|
# set variables
|
||||||
self.commit = commit
|
self.commit = commit
|
||||||
self.sign_state = sign_state
|
self.sign_state = sign_state
|
||||||
|
|
||||||
# process date
|
# process date
|
||||||
if self.commit['date']:
|
if self.commit.get('date'):
|
||||||
self.commit['date'] = datetime.fromisoformat(self.commit['date'])
|
self.commit['date'] = datetime.fromisoformat(self.commit.get('date'))
|
||||||
|
|
||||||
if sign_state.status == 0:
|
if sign_state.status == 0:
|
||||||
self.sign_color = 'success'
|
self.sign_color = 'success'
|
||||||
|
Loading…
Reference in New Issue
Block a user