Skip to content

Commit

Permalink
Bump patch number
Browse files Browse the repository at this point in the history
- Allow bypass of session number check
- Fix project setup bug
  • Loading branch information
wsarce committed Apr 14, 2022
1 parent 2c804a7 commit cc02ec6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
11 changes: 7 additions & 4 deletions patient_data_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,10 +266,13 @@ def check_session_fields(self):
return "Data recorder not set!"
elif self.patient_vars[PatientDataVar.PRIM_DATA].get() == "":
return "Data type not set!"
elif int(self.patient_vars[PatientDataVar.SESS_NUM].get()) < self.session_number and self.patient_vars[
PatientDataVar.PRIM_DATA].get() == "Primary":
return "Session number already exists!"
else:
try:
if int(self.patient_vars[PatientDataVar.SESS_NUM].get()) < self.session_number and self.patient_vars[
PatientDataVar.PRIM_DATA].get() == "Primary":
return "Session number already exists!"
else:
return False
except ValueError as e:
return False

def lock_session_fields(self):
Expand Down
2 changes: 2 additions & 0 deletions project_setup_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,7 @@ def import_concern_ksf(self):
print(f"WARNING: No tracker file selected")

def populate_frequency_treeview(self):
self.clear_frequency_treeview()
self.frequency_treeview_parents.append(
self.frequency_key_treeview.insert("", 'end', str(0), text="Create New Frequency Key",
tags=treeview_tags[2]))
Expand All @@ -493,6 +494,7 @@ def clear_duration_treeview(self):
self.duration_treeview_parents = []

def populate_duration_treeview(self):
self.clear_duration_treeview()
self.duration_treeview_parents.append(
self.duration_key_treeview.insert("", 'end', str(0), text="Create New Duration Key",
tags=treeview_tags[2]))
Expand Down
2 changes: 1 addition & 1 deletion ui_params.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cometrics_version = "1.0.8"
cometrics_version = "1.0.9"
ui_title = f"cometrics v{cometrics_version}"

cometrics_data_root = fr'C:\cometrics'
Expand Down

0 comments on commit cc02ec6

Please sign in to comment.