Bug fixes.
This commit is contained in:
@@ -269,7 +269,7 @@ from .controls import *
|
||||
from .organizations import *
|
||||
from .kits import *
|
||||
from .submissions import *
|
||||
from .audit import AuditLog
|
||||
from .audit import *
|
||||
|
||||
# NOTE: Add a creator to the submission for reagent association. Assigned here due to circular import constraints.
|
||||
# https://docs.sqlalchemy.org/en/20/orm/extensions/associationproxy.html#sqlalchemy.ext.associationproxy.association_proxy.params.creator
|
||||
|
||||
@@ -332,7 +332,6 @@ class KitType(BaseClass):
|
||||
return new_kit
|
||||
|
||||
|
||||
|
||||
class ReagentRole(BaseClass):
|
||||
"""
|
||||
Base of reagent type abstract
|
||||
|
||||
@@ -1265,7 +1265,9 @@ class BasicSubmission(BaseClass, LogMixin):
|
||||
logger.error(f"Couldn't save association with {equip} due to {e}")
|
||||
if equip.tips:
|
||||
for tips in equip.tips:
|
||||
logger.debug(f"Attempting to add tips assoc: {tips} (pydantic)")
|
||||
tassoc = tips.to_sql(submission=self)
|
||||
logger.debug(f"Attempting to add tips assoc: {tips.__dict__} (sql)")
|
||||
if tassoc not in self.submission_tips_associations:
|
||||
tassoc.save()
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user