Skip to content

Commit

Permalink
organize examples, add strands to hidden fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Grant Moore committed Feb 12, 2022
1 parent 503eb1b commit a4c64e6
Show file tree
Hide file tree
Showing 13 changed files with 4 additions and 108 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
if __name__=="__main__":

# NOTE: Point `innoldb` to the Ledger from which you are reading/writing through the environment
os.environ['LEDGER'] = 'innolab'
# os.environ['LEDGER'] = 'innolab'

# NOTE: Import needs to come after environment variable has been set!
from innoldb.qldb import Document
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
if __name__=="__main__":

# NOTE: Point `innoldb` to the Ledger from which you are reading/writing through the environment
os.environ['LEDGER'] = 'innolab'
# os.environ['LEDGER'] = 'innolab'

# NOTE: Import needs to come after environment variable has been set! The library will scan the environment
# on import and set the ledger.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
if __name__=="__main__":

# NOTE: Point `innoldb` to the Ledger from which you are reading/writing through the environment
os.environ['LEDGER'] = 'schema'
# os.environ['LEDGER'] = 'schema'

# NOTE: Import needs to come after environment variable has been set! The library will scan the environment
# on import and set the ledger.
Expand Down
20 changes: 0 additions & 20 deletions schemas/v1.0.0.json

This file was deleted.

24 changes: 0 additions & 24 deletions schemas/v1.0.1.json

This file was deleted.

28 changes: 0 additions & 28 deletions schemas/v1.0.2.json

This file was deleted.

Empty file.
8 changes: 0 additions & 8 deletions src/innoldb/examples/example_ion/example_ion_loads.py

This file was deleted.

Empty file.
24 changes: 0 additions & 24 deletions src/innoldb/examples/example_schema_vc/example_load_schemas.py

This file was deleted.

2 changes: 1 addition & 1 deletion src/innoldb/qldb.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def fields(self):
:return: `innoldb.qldb.Document` fields
:rtype: dict
"""
return {key: value for key, value in vars(self).items() if key not in ['table', 'driver', 'index', 'ledger', 'meta_id']}
return {key: value for key, value in vars(self).items() if key not in ['table', 'driver', 'index', 'ledger', 'meta_id', 'strands']}

def save(self):
"""Save the current value of the `innoldb.qldb.Document` fields to the **QLDB** ledger table.
Expand Down

0 comments on commit a4c64e6

Please sign in to comment.