mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
simplify syntax
This commit is contained in:
parent
285e6fe93e
commit
2fc8efbfb2
@ -356,12 +356,7 @@ class IntegrationPluginBase(MixinBase, plugin.InvenTreePlugin):
|
|||||||
|
|
||||||
def set_package(self):
|
def set_package(self):
|
||||||
"""add packaging info of the plugins into plugins context"""
|
"""add packaging info of the plugins into plugins context"""
|
||||||
if self.is_package:
|
package = self.get_package_metadata() if self.is_package else self.get_package_commit()
|
||||||
# is a package - no commit
|
|
||||||
package = self.get_package_metadata()
|
|
||||||
else:
|
|
||||||
# fetch git commit
|
|
||||||
package = self.get_package_commit()
|
|
||||||
|
|
||||||
# process date
|
# process date
|
||||||
if package.get('date'):
|
if package.get('date'):
|
||||||
|
Loading…
Reference in New Issue
Block a user