Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File management improvements #24

Merged
merged 22 commits into from
Jan 21, 2025
Merged
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix models datetime warning
MehmedGIT committed Jan 9, 2025
commit cd94d24bfd47d93931e0b5004916870a861b4fc5
10 changes: 5 additions & 5 deletions src/utils/operandi_utils/database/models.py
Original file line number Diff line number Diff line change
@@ -31,7 +31,7 @@ class DBUserAccount(Document):
account_type: AccountType = AccountType.UNSET
approved_user: bool = False
deleted: bool = False
datetime = datetime.now()
datetime: Optional[datetime]
details: Optional[str]

class Settings:
@@ -85,7 +85,7 @@ class DBHPCSlurmJob(Document):
hpc_batch_script_path: Optional[str]
hpc_slurm_workspace_path: Optional[str]
deleted: bool = False
datetime = datetime.now()
datetime: Optional[datetime]
details: Optional[str]

class Settings:
@@ -117,7 +117,7 @@ class DBWorkflow(Document):
executable_steps: List[str]
producible_file_groups: List[str]
deleted: bool = False
datetime = datetime.now()
datetime: Optional[datetime]
details: Optional[str]

class Settings:
@@ -152,7 +152,7 @@ class DBWorkflowJob(Document):
workspace_dir: Optional[str]
hpc_slurm_job_id: Optional[str]
deleted: bool = False
datetime = datetime.now()
datetime: Optional[datetime]
details: Optional[str]

class Settings:
@@ -195,7 +195,7 @@ class DBWorkspace(Document):
mets_basename: Optional[str]
bag_info_adds: Optional[dict]
deleted: bool = False
datetime = datetime.now()
datetime: Optional[datetime]
details: Optional[str]

class Settings: