Buckets:
AnonymousSpottedToad/human_verified_bucket / codebase /python /Daylily-Informatics_bloom /pregen_AY.py
| import json | |
| from bloom_lims.db import BLOOMdb3 | |
| from bloom_lims.bobjs import BloomObj | |
| import sys | |
| import os | |
| from sqlalchemy.orm.attributes import flag_modified | |
| if sys.argv[1] != "go": | |
| raise ("this is only for initial seeding of the database") | |
| bob = BloomObj(BLOOMdb3(app_username="bloom_db_init")) | |
| for tobe_locked_assay in ( | |
| bob.session.query(bob.Base.classes.generic_template) | |
| .filter(bob.Base.classes.generic_template.category == "workflow") | |
| .filter(bob.Base.classes.generic_template.type == "assay") | |
| .all() | |
| ): | |
| print(f"WHATISTHIS::: {tobe_locked_assay}") | |
| gi = bob.create_instances(tobe_locked_assay.euid)[0][0] | |
| gi.is_singleton = True | |
| flag_modified(gi, "is_singleton") | |
| bob.session.commit() | |
Xet Storage Details
- Size:
- 733 Bytes
- Xet hash:
- d7ec304c86066617ec7e1c2f9cbd8a4fddef5aa52792bbdbfbd3c4c7e8a04b76
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.