added get_inventory_logs_of_type() to Asset

This commit is contained in:
2024-11-14 18:01:01 +01:00
parent 6c1e9f63f2
commit 0bb91c25b7
3 changed files with 16 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
import neofarm.lib as neo
if __name__ == "__main__":
log = neo.Log.Seeding.get_list()[1]
print(log.notes)
log = neo.Log.Input.from_id("d2e78314-730c-47ae-a0b4-aff42025475e")
print(log.quantities[0].inventory_asset.get_inventory_logs_of_type(neo.Log.Purchase)[0].name)