Skip to content

enable_communities flag removed in backend #906

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

Merged
merged 1 commit into from
Dec 2, 2024
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