mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
decide where transit info is loaded from based on install method
This commit is contained in:
parent
50e5bfc4a4
commit
e654ba786f
@ -352,8 +352,13 @@ class IntegrationPluginBase(MixinBase, plugin.InvenTreePlugin):
|
|||||||
|
|
||||||
def set_sign_values(self):
|
def set_sign_values(self):
|
||||||
"""add the last commit of the plugins class file into plugins context"""
|
"""add the last commit of the plugins class file into plugins context"""
|
||||||
# fetch git log
|
if self.is_package:
|
||||||
commit = self.get_plugin_commit()
|
# is a package - no signing - no commit
|
||||||
|
commit = {}
|
||||||
|
else:
|
||||||
|
# fetch git log
|
||||||
|
commit = self.get_plugin_commit()
|
||||||
|
|
||||||
# resolve state
|
# resolve state
|
||||||
sign_state = getattr(GitStatus, commit['verified'], GitStatus.N)
|
sign_state = getattr(GitStatus, commit['verified'], GitStatus.N)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user