Skip to content
Merged
Changes from all commits
Commits
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
7 changes: 2 additions & 5 deletions backend/src/graphDB_dataAccess.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,14 +187,11 @@ def check_gds_version(self):
result = self.graph.query(gds_procedure_count)
total_gds_procedures = result[0]['totalGdsProcedures'] if result else 0

enable_communities = os.environ.get('ENABLE_COMMUNITIES','').upper() == "TRUE"
logging.info(f"Enable Communities {enable_communities}")

if enable_communities and total_gds_procedures > 0:
if total_gds_procedures > 0:
logging.info("GDS is available in the database.")
return True
else:
logging.info("Communities are disabled or GDS is not available in the database.")
logging.info("GDS is not available in the database.")
return False
except Exception as e:
logging.error(f"An error occurred while checking GDS version: {e}")
Expand Down