mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-15 19:45:46 +00:00
simplify syntax
This commit is contained in:
@ -356,12 +356,7 @@ class IntegrationPluginBase(MixinBase, plugin.InvenTreePlugin):
|
||||
|
||||
def set_package(self):
|
||||
"""add packaging info of the plugins into plugins context"""
|
||||
if self.is_package:
|
||||
# is a package - no commit
|
||||
package = self.get_package_metadata()
|
||||
else:
|
||||
# fetch git commit
|
||||
package = self.get_package_commit()
|
||||
package = self.get_package_metadata() if self.is_package else self.get_package_commit()
|
||||
|
||||
# process date
|
||||
if package.get('date'):
|
||||
|
Reference in New Issue
Block a user